[wp-trac] [WordPress Trac] #17706: removeAttr('style') to fix #17058 does not work in Chromium

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 6 12:14:51 UTC 2011


#17706: removeAttr('style') to fix #17058 does not work in Chromium
--------------------------+-----------------------------
 Reporter:  duck_         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  3.2
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 The second part of #17058, unable to view submenu on hover after toggling
 closed and collapsing the menu, is not fixed for Chrom(ium|e).

 This is because removeAttribute('style'), used internally by the jQuery
 removeAttr() function, does not work properly in said browser. Tested
 using Chromium 11.0.696.71 on Linux.

 http://jsfiddle.net/q35F9/2/

 http://code.google.com/p/chromium/issues/detail?id=80670

 http://code.google.com/p/chromium/issues/detail?id=35751

 Strangely if you try to observe the behaviour as it happens using the
 inbuilt developer tools it works as expected. You can only check that
 "display:none;" is still set '''after''' toggling the submenu closed.

 An alternative method I thought of to fix this was to use
 `.css('display','')`. This works in both Chromium and Firefox in testing.
 Any other methods?

 Note that the first part of #17058 isn't an issue since submenus are
 hidden by width = 0 when the menu is collapsed.

 Related: #17058, r17623

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17706>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list