Core: pass empty string to createHTMLDocument to appease IE

This commit is contained in:
Timmy Willison 2014-12-09 16:37:30 -05:00
parent 59232825aa
commit 31c7d7fb75

View File

@ -19,7 +19,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
}
// document.implementation stops scripts or inline event handlers from
// being executed immediately
context = context || document.implementation.createHTMLDocument();
context = context || document.implementation.createHTMLDocument( "" );
var parsed = rsingleTag.exec( data ),
scripts = !keepScripts && [];