W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Element.matchesSelector vs. Element. matches

From: Bronislav Klučka <Bronislav.Klucka@bauglir.com>
Date: Wed, 21 Mar 2012 03:38:03 +0100
Message-ID: <4F693F0B.80308@bauglir.com>
To: "public-webapps@w3.org" <public-webapps@w3.org>

Hello,

Why there are 2 similar functionalities for selector matching?

http://dev.w3.org/2006/webapi/selectors-api2/#matches
boolean   matches(DOMString selectors, optional (Element or sequence<Node>)? refNodes);

http://www.w3.org/TR/selectors-api2/#matchtesting
boolean   matchesSelector(in DOMString selectors, in optional any refNodes]);

is it because of different signature of second optional parameter or did
someone overlooked something?


Brona Klucka
Received on Wednesday, 21 March 2012 02:38:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT