aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/selector/rbuggyQSA.js9
-rw-r--r--test/unit/selector.js6
2 files changed, 1 insertions, 14 deletions
diff --git a/src/selector/rbuggyQSA.js b/src/selector/rbuggyQSA.js
index 2c853a0f1..e9ebbb34e 100644
--- a/src/selector/rbuggyQSA.js
+++ b/src/selector/rbuggyQSA.js
@@ -6,15 +6,6 @@ var rbuggyQSA = [],
testEl = document.createElement( "div" ),
input = document.createElement( "input" );
-testEl.innerHTML = "<a href=''></a>";
-
-// Support: Chrome 38 - 77 only
-// Chrome considers anchor elements with href to match ":enabled"
-// See https://bugs.chromium.org/p/chromium/issues/detail?id=993387
-if ( testEl.querySelectorAll( ":enabled" ).length ) {
- rbuggyQSA.push( ":enabled" );
-}
-
// Support: IE 9 - 11+
// IE's :disabled selector does not pick up the children of disabled fieldsets
if ( isIE ) {
diff --git a/test/unit/selector.js b/test/unit/selector.js
index a8204242a..1b657fe77 100644
--- a/test/unit/selector.js
+++ b/test/unit/selector.js
@@ -2,8 +2,6 @@ QUnit.module( "selector", {
beforeEach: function() {
this.safari = /\bsafari\b/i.test( navigator.userAgent ) &&
!/\bchrome\b/i.test( navigator.userAgent );
- this.chrome = /\bchrome\b/i.test( navigator.userAgent ) &&
- !/\bedge\b/i.test( navigator.userAgent );
},
afterEach: moduleTeardown
} );
@@ -1379,9 +1377,7 @@ QUnit.test( "pseudo - :(dis|en)abled, explicitly disabled", function( assert ) {
"disabled-select", "disabled-optgroup", "disabled-option" ]
);
- if ( QUnit.jQuerySelectors || !this.chrome ) {
- // Support: Chrome 75+
- // Chrome recognizes anchor elements as enabled.
+ if ( QUnit.jQuerySelectors ) {
assert.t(
"Enabled elements",
"#enabled-fieldset :enabled",