CSS3 Selectors
Current Version: 0.3
This extension seeks to implement the CSS3 Selectors module back to IE6. Support is currently incomplete, but the following are known to work:
- compound classes (e.g.
.foo.bar) - this is a fix for IE6 and under :empty- language (e.g.
p:lang(fr)) :not- adjacent siblings (e.g.
p + p) - general siblings (e.g.
p ~ p) - attributes
- existence (e.g.
p[class]) - substring (e.g.
p[class*=test]) - contains (e.g.
p[class~=test]) - starts with (e.g.
p[class^=test]) - ends with (e.g.
p[class$=test]) - One in hyphen-separated list (e.g.
p[class|=test])
- existence (e.g.
- calculated child selection (support varies by selector engine)
:first-child:last-child:only-child:nth-child(*):nth-last-child(*)
- calculated type selection (support varies by selector engine)
:nth-of-type(*):nth-last-of-type(*):first-of-type:last-of-type
- form pseudo-classes
:enabled:disabled:checked
Note: In order to use this extension, you will need to provide the extension with a selector engine to use as the eCSStender method findBySelector. For example, to use Sizzle:
eCSStender.addMethod('findBySelector',Sizzle);