removeAttr('style') to fix #17058 does not work in Chromium
|Reported by:||duck_||Owned by:||azaozz|
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.
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.