mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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:
parent
44c56f87a3
commit
b84146ce17
@ -53,8 +53,12 @@ QUnit.test( "text()", function( assert ) {
|
||||
|
||||
$newLineTest.remove();
|
||||
|
||||
doc = new DOMParser().parseFromString( "<span>example</span>", "text/html" );
|
||||
assert.equal( jQuery( doc ).text(), "example", "text() on HTMLDocument (gh-5264)" );
|
||||
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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user