W3C home > Mailing lists > Public > www-style@w3.org > April 2012

Re: [css-selectors] :contains()

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 17 Apr 2012 09:59:54 -0700
Message-ID: <CAAWBYDAkP2ADKnMYevr8cK0pDA7JgsU0kFDJ-b9Kai93+1bwDg@mail.gmail.com>
To: Sebastian Zartner <sebastianzartner@gmx.de>
Cc: www-style@w3.org
On Tue, Apr 17, 2012 at 6:06 AM, Sebastian Zartner
<sebastianzartner@gmx.de> wrote:
> There's a discussion at https://bugzil.la/221981 about adding the :contains() pseudo-class selector to the Mozilla CSS core.
> According to Ian Hickson (http://lists.w3.org/Archives/Public/www-style/2005Dec/0155.html) and David Baron (https://bugzil.la/221981#c15) this feature was dropped from the spec due to a lack of implementations.
> This mail aims for a re-introduction of :contains() into the spec and to discuss its implementation.

Unfortunately, the implementation concerns are still relevant.  It
seems to be quite difficult to implement efficiently in the face of
dynamic updates.

This is perfectly appropriate for use in a static query, like for
querySelector(), though.  I think we should add this back to
Selectors, but create a "dynamic" and "static" profile, with
:contains() excluded from the dynamic profile.

Received on Tuesday, 17 April 2012 17:00:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:14 UTC