Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Element.matches if available #64

Closed
wants to merge 1 commit into from
Closed

Use Element.matches if available #64

wants to merge 1 commit into from

Conversation

foolip
Copy link
Contributor

@foolip foolip commented Mar 8, 2014

Spec:
http://dom.spec.whatwg.org/#dom-element-matches

Support in Chromium:
https://code.google.com/p/chromium/issues/detail?id=326652

Element.matchesSelector was never standardized and it is not available
in the most recent versions of Blink, Gecko, Presto, Trident or WebKit.

Remove the trailing comment since it had become stale. Opera 12.16
(Presto) did have oMatchesSelector and since Opera 14 (Blink) it has
webkitMatchesSelector instead.

@foolip
Copy link
Contributor Author

foolip commented Mar 8, 2014

The discussion in a similar pull request for Sizzle may be of interest: jquery/sizzle#251

Spec:
http://dom.spec.whatwg.org/#dom-element-matches

Support in Chromium:
https://code.google.com/p/chromium/issues/detail?id=326652

Element.matchesSelector was never standardized and it is not available
in the most recent versions of Blink, Gecko, Presto, Trident or WebKit.

Remove the trailing comment since it had become stale. Opera 12.16
(Presto) did have oMatchesSelector and since Opera 14 (Blink) it has
webkitMatchesSelector instead.
@dylans
Copy link
Member

dylans commented Apr 9, 2014

Normally I would ask for a CLA (http://dojofoundation.org/about/claForm) , but it's a trivial 1 line patch.

@dylans
Copy link
Member

dylans commented Apr 9, 2014

Added https://bugs.dojotoolkit.org/ticket/17855 to track this.

@dylans dylans added this to the 1.10 milestone Apr 9, 2014
@kriszyp
Copy link
Member

kriszyp commented Apr 10, 2014

Committed in e5f099e

@kriszyp kriszyp closed this Apr 10, 2014
@foolip
Copy link
Contributor Author

foolip commented Apr 10, 2014

I actually signed the CLA when I opened this pull request, just in case.

@foolip foolip deleted the matches-unprefixed branch April 10, 2014 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants