| 1537 | assert.ok( jQuery( elem ).is( selector ), text + " match " + selector ); |
| 1538 | }, |
| 1539 | assertNoMatch = function( text, elem, 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(?:headless)?chrome\/141\./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 | } |
| 1551 | }; |
| 1552 | |
| 1553 | // Prefixing and inheritance |
| 1554 | assert.ok( jQuery( docElem ).is( ":lang(" + docElem.lang + ")" ), "starting :lang" ); |