File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1537,7 +1537,17 @@ QUnit.test( "pseudo - :lang", function( assert ) {
15371537 assert . ok ( jQuery ( elem ) . is ( selector ) , text + " match " + selector ) ;
15381538 } ,
15391539 assertNoMatch = function ( text , elem , selector ) {
1540- assert . ok ( ! jQuery ( elem ) . is ( selector ) , text + " fail " + selector ) ;
1540+
1541+ // Support: Chrome 141 only
1542+ // Chrome 141 incorrectly matches `:lang()` selectors with values with a trailing `-`.
1543+ // This is fixed in Chrome 142, so just skip these tests in v141.
1544+ // See https://issues.chromium.org/issues/451355198
1545+ if ( / \b (?: h e a d l e s s ) ? c h r o m e \/ 1 4 1 \. / i. test ( navigator . userAgent ) &&
1546+ selector . slice ( - 2 ) === "-)" ) {
1547+ assert . ok ( true , "Broken handling in Chrome 141: " + text + " fail " + selector ) ;
1548+ } else {
1549+ assert . ok ( ! jQuery ( elem ) . is ( selector ) , text + " fail " + selector ) ;
1550+ }
15411551 } ;
15421552
15431553 // Prefixing and inheritance
You can’t perform that action at this time.
0 commit comments