DescriptionImplement Element.matches(selectors)
http://dom.spec.whatwg.org/#dom-element-matches
No tested browser (Firefox Nightly, IE11 Release Preview, Opera 12.16)
has implemented the unprefixed API yet.
Having verified that the other browsers throw an exception for
*MatchesSelector(), make the argument to webkitMatchesSelector()
non-optional to align with them and the unprefixed API.
The spec requires throwing a TypeError when parsing the selectors
fails, but we currently throw a SyntaxError. So do the other browsers
for *MatchesSelector(), so file a spec bug instead of changing it:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24028
BUG=326652
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163442
Patch Set 1 #Patch Set 2 : add test #Patch Set 3 : simplify #Patch Set 4 : fix test #
Messages
Total messages: 13 (0 generated)
|