W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2013

Re: Making selectors first-class citizens

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 12 Sep 2013 13:45:46 +0100
Message-ID: <CADnb78izjB_5-AcXhXBnXJMy5=ZNTNiGSM9V_D=eATgg=GP1pg@mail.gmail.com>
To: Robin Berjon <robin@w3.org>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, WebApps WG <public-webapps@w3.org>
On Wed, Sep 11, 2013 at 9:49 PM, Robin Berjon <robin@w3.org> wrote:
> On IRC Domenic pointed out that the primary apparent usage for this mirrors
> jQuery's .is(). Barring the caching case, it seems unlikely to be appealing
> to do (new Selectors("div")).matches(el) instead of el.matches("div").

Thanks for bringing that up here Robin. I added
Element.prototype.matches() to the specification:

http://dom.spec.whatwg.org/#dom-element-matches

See http://krijnhoetmer.nl/irc-logs/whatwg/20130912#l-365 for why it
does not have the refNodes argument anymore.


-- 
http://annevankesteren.nl/
Received on Thursday, 12 September 2013 12:46:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:13 UTC