Tests: Skip a new .text() test in IE 9

The test depends on `DOMParser`'s `parseFromString` called with `text/html`
which is not supported in IE 9.
This commit is contained in:
Michał Gołębiowski-Owczarek 2023-06-12 23:52:30 +02:00
parent 44c56f87a3
commit b84146ce17
No known key found for this signature in database

View File

@ -53,8 +53,12 @@ QUnit.test( "text()", function( assert ) {
$newLineTest.remove();
if ( !document.documentMode || document.documentMode > 9 ) {
doc = new DOMParser().parseFromString( "<span>example</span>", "text/html" );
assert.equal( jQuery( doc ).text(), "example", "text() on HTMLDocument (gh-5264)" );
} else {
assert.ok( true, "IE 9 doesn't support DOMParser's parseFromString with text/html" );
}
} );
QUnit.test( "text(undefined)", function( assert ) {