]> source.dussan.org Git - jquery.git/commitdiff
Core: pass empty string to createHTMLDocument to appease IE
authorTimmy Willison <timmywillisn@gmail.com>
Tue, 9 Dec 2014 21:37:30 +0000 (16:37 -0500)
committerTimmy Willison <timmywillisn@gmail.com>
Tue, 9 Dec 2014 21:37:30 +0000 (16:37 -0500)
src/core/parseHTML.js

index f4448b7b1dd3b11d96125539a80fe5116a8df8af..c501cdfc9d883bfdbfe5c4a215b370f24587a387 100644 (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 && [];