Element.matchesSelector vs. Element. matches

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 UTC