Mobile app version of vmapp.org
Login or Join
Tiffany637

: Why was :contains not included in the css3 spec? There was apparently a :contains selector proposed at some point, but was dropped. I've searched all over, but I can't seem to find anything

@Tiffany637

Posted in: #Css3

There was apparently a :contains selector proposed at some point, but was dropped. I've searched all over, but I can't seem to find anything which gives any more info than this.

Why was this selector not included in the css3 spec?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Tiffany637

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

It was not included in CSS3 for a few reasons. A little more about reasons can be found at stackoverflow.com/questions/4781141/why-doesnt-the-selector-h3nth-child1containsa-work/4781167#4781167
The best alternative to use is CSS3 Substring Matching Attribute Selectors which allow wild cards

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme