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>


Why there are 2 similar functionalities for selector matching?

boolean   matches(DOMString selectors, optional (Element or sequence<Node>)? refNodes);

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

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