Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to properly exclude the parsing of :first-child for IE7/8 ?

505 views
Skip to first unread message

Ian Y.

unread,
Mar 27, 2013, 11:43:32 AM3/27/13
to ie-...@googlegroups.com
I edited the value of var RE_PSEUDO_STRUCTURAL to the following one for IE7/8 in order to exclude the parsing of :first-child for IE7/8.

/^:(empty|first-of-type|(last|only|nth(-last)?)-(child|of-type))$/;


However, the following selector then being ignored.

li:not(:first-child) { ... }


How to properly edit the regexp's so that we don't have to parse :first-child for IE7/8 while keep :not(:first-child) working?


Regards,
Ian Y.
Reply all
Reply to author
Forward
0 new messages