[wp-hackers] Adding class to first menu item of submenu in	wp_nav_menu
    Mike Schinkel 
    mikeschinkel at newclarity.net
       
    Mon Jun 28 01:46:24 UTC 2010
    
    
  
> Actually, according to your link, it does work in IE7 and up. The
> caveats it mentions occur when you change the DOM via javascript.
Point taken. But for IE8:
"IE8 does the right thing only after you remove the focus from the test link."
Unless I misread, that's not related to DOM manipulation?  FWIW.
-Mike
On Jun 27, 2010, at 9:06 PM, Otto wrote:
> Actually, according to your link, it does work in IE7 and up. The
> caveats it mentions occur when you change the DOM via javascript.
> 
> -Otto
> 
> 
> 
> On Sun, Jun 27, 2010 at 7:29 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
>>> Why would you need that? Just use "ul.sub-menu li:first-child". CSS2
>>> has you covered on that score.
>> 
>> FYI, li:first-child doesn't work 100%[1] in IE8 nor at all in IE7, unfortunately.
>> 
>> -Mike
>> [1] http://www.quirksmode.org/css/contents.html
>> 
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
    
    
More information about the wp-hackers
mailing list