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 /test/unit/selector.js | |
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 'test/unit/selector.js')
-rw-r--r-- | test/unit/selector.js | 6 |
1 files changed, 1 insertions, 5 deletions
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", |