Skip to content

Commit 31c7d7f

Browse files
committed
Core: pass empty string to createHTMLDocument to appease IE
1 parent 5923282 commit 31c7d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/parseHTML.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
1919
}
2020
// document.implementation stops scripts or inline event handlers from
2121
// being executed immediately
22-
context = context || document.implementation.createHTMLDocument();
22+
context = context || document.implementation.createHTMLDocument( "" );
2323

2424
var parsed = rsingleTag.exec( data ),
2525
scripts = !keepScripts && [];

0 commit comments

Comments
 (0)