Re: Element.matchesSelector vs. Element. matches

2012-03-20 Thread Boris Zbarsky
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. http://dev.w3.org/2006/webapi/selectors-api2/#matches boolean match

Element.matchesSelector vs. Element. matches

2012-03-20 Thread Bronislav Klučka
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)? refNodes); http://www.w3.org/TR/selectors-api2/#matchtesting boolean matchesSelector(in DOMStrin