jquery Programming Glossary: combinators
What's the difference in the :not() selector between jQuery and CSS? http://stackoverflow.com/questions/10711730/whats-the-difference-in-the-not-selector-between-jquery-and-css CSS3 div not .foo div not .bar div not .baz As you can see this is even more inconvenient than point 1. You can't use combinators. This works in jQuery but not CSS Grab everything that is neither #foo itself nor within #foo. Notice the descendant combinator.. list of compound selectors. Compound selectors are quite simply simple selectors combined compounded together without combinators separating them. This means that the jQuery selectors shown in points 1 and 2 above will probably become equivalent and.. much much more useful when CSS parsers start to support it in the coming years. Unfortunately it still does not allow combinators as shown in point 3 at least not as of this writing so jQuery still has kind of the upper hand here. That shouldn't be much..
What CSS3 selectors does jQuery really support, e.g. :nth-last-child()? http://stackoverflow.com/questions/11745274/what-css3-selectors-does-jquery-really-support-e-g-nth-last-child implementation and the current standard are covered in this question . 2 A few other selectors like the and ~ sibling combinators empty lang and some CSS2 attribute selectors were going to be dropped as well during jQuery's early development just because..
|