Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb84146c

Browse files
committed
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.
1 parent44c56f8 commitb84146c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎test/unit/manipulation.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ QUnit.test( "text()", function( assert ) {
5353

5454
$newLineTest.remove();
5555

56-
doc=newDOMParser().parseFromString("<span>example</span>","text/html");
57-
assert.equal(jQuery(doc).text(),"example","text() on HTMLDocument (gh-5264)");
56+
if(!document.documentMode||document.documentMode>9){
57+
doc=newDOMParser().parseFromString("<span>example</span>","text/html");
58+
assert.equal(jQuery(doc).text(),"example","text() on HTMLDocument (gh-5264)");
59+
}else{
60+
assert.ok(true,"IE 9 doesn't support DOMParser's parseFromString with text/html");
61+
}
5862
});
5963

6064
QUnit.test("text(undefined)",function(assert){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp