mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 08:55:55 -05:00
Core: pass empty string to createHTMLDocument to appease IE
This commit is contained in:
@@ -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 && [];
|
||||
|
||||
Reference in New Issue
Block a user