W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: Making selectors first-class citizens

From: Brian Kardell <bkardell@gmail.com>
Date: Wed, 11 Sep 2013 09:52:34 -0400
Message-ID: <CADC=+jcXw_tenZgqkWexmqr5xhRaXHzk94VJL_Oe=jPxf0+MyQ@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Domenic Denicola <domenic@domenicdenicola.com>, www-style@w3.org, WebApps WG <public-webapps@w3.org>
On Sep 11, 2013 9:34 AM, "Anne van Kesteren" <annevk@annevk.nl> wrote:
>
> As far as I can tell Element.prototype.matches() is not deployed yet.
> Should we instead make selectors first-class citizens, just like
> regular expressions, and have this:
>
>   var sel = new Selectors("i > love > selectors, so[much]")
>   sel.test(node)
>
> That seems like a much nicer approach.
>
> (It also means this can be neatly defined in the Selectors
> specification, rather than in DOM, which means less work for me. :-))
>
>
> --
> http://annevankesteren.nl/
>

I like the idea, but matches has been in release builds for a long time,
right?  Hitch uses it.
Received on Wednesday, 11 September 2013 13:53:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 September 2013 13:53:06 UTC