- From: Anne van Kesteren <annevk@annevk.nl>
- Date: Thu, 12 Sep 2013 13:45:46 +0100
- 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