mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Selector: Use Element.matches in selector-native if available
Spec: http://dom.spec.whatwg.org/#dom-element-matches Support in Chromium: https://code.google.com/p/chromium/issues/detail?id=326652 Fixes #14902 Closes gh-1524
This commit is contained in:
parent
ad032d3c7d
commit
2c2c93c7cb
@ -220,4 +220,5 @@ Roman Reiß <me@silverwind.io>
|
||||
Benjy Cui <benjytrys@gmail.com>
|
||||
Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>
|
||||
John Hoven <hovenj@gmail.com>
|
||||
Philip Jägenstedt <philip@foolip.org>
|
||||
|
||||
|
@ -29,7 +29,8 @@ define([
|
||||
|
||||
var docElem = window.document.documentElement,
|
||||
selector_hasDuplicate,
|
||||
matches = docElem.webkitMatchesSelector ||
|
||||
matches = docElem.matches ||
|
||||
docElem.webkitMatchesSelector ||
|
||||
docElem.mozMatchesSelector ||
|
||||
docElem.oMatchesSelector ||
|
||||
docElem.msMatchesSelector,
|
||||
|
Loading…
Reference in New Issue
Block a user