Re: Element.matchesSelector vs. Element. matches

On 3/20/12 10:38 PM, Bronislav Klučka wrote:
> Hello,
> Why there are 2 similar functionalities for selector matching?

Because you're reading two versions of the same spec and the spec 
changed sometime between those versions.

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

This is the new version.

> boolean matchesSelector(in DOMString selectors, in optional any refNodes]);

This is the old version.


Received on Wednesday, 21 March 2012 03:52:21 UTC