From b77983173e18724a883e02ad3a84661e18e6cf4a Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 9 Dec 2014 18:00:06 -0500 Subject: Core: revert addition of createHTMLDocument. Thanks, Safari 8. - Safari 8 has issues when the HTML string contains forms. Closing tags are not respected. --- src/core/parseHTML.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/parseHTML.js b/src/core/parseHTML.js index c501cdfc9..e0348971d 100644 --- a/src/core/parseHTML.js +++ b/src/core/parseHTML.js @@ -17,9 +17,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) { keepScripts = context; context = false; } - // document.implementation stops scripts or inline event handlers from - // being executed immediately - context = context || document.implementation.createHTMLDocument( "" ); + context = context || document; var parsed = rsingleTag.exec( data ), scripts = !keepScripts && []; -- cgit v1.2.3