diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-12-16 19:43:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-16 19:43:38 +0100 |
commit | c1ee33aded44051b8f1288b59d2efdc68d0413cc (patch) | |
tree | 31b7e70e62ac2579ce35043b825d00db96c16955 /src | |
parent | f1c16de29689d2cfaf629f00d682148e99753509 (diff) | |
download | jquery-c1ee33aded44051b8f1288b59d2efdc68d0413cc.tar.gz jquery-c1ee33aded44051b8f1288b59d2efdc68d0413cc.zip |
Selector: Remove the "a:enabled" workaround for Chrome <=77
Remove the workaround for a broken `:enabled` pseudo-class on anchor elements
in Chrome <=77. These versions of Chrome considers anchor elements with the
`href` attribute as matching `:enabled`.
Closes gh-4569
Diffstat (limited to 'src')
-rw-r--r-- | src/selector/rbuggyQSA.js | 9 |
1 files changed, 0 insertions, 9 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 ) { |