mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Core: pass empty string to createHTMLDocument to appease IE
This commit is contained in:
parent
59232825aa
commit
31c7d7fb75
@ -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 && [];
|
||||
|
Loading…
Reference in New Issue
Block a user