aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimmy Willison <timmywillisn@gmail.com>2014-12-09 18:00:06 -0500
committerTimmy Willison <timmywillisn@gmail.com>2014-12-09 18:01:33 -0500
commitb77983173e18724a883e02ad3a84661e18e6cf4a (patch)
treefff3d29da27180d69425c57cee725251e0dcce16 /src
parent4ab743188ec6bdaafe8550dab84f374ef7e22aca (diff)
downloadjquery-b77983173e18724a883e02ad3a84661e18e6cf4a.tar.gz
jquery-b77983173e18724a883e02ad3a84661e18e6cf4a.zip
Core: revert addition of createHTMLDocument. Thanks, Safari 8.
- Safari 8 has issues when the HTML string contains forms. Closing tags are not respected.
Diffstat (limited to 'src')
-rw-r--r--src/core/parseHTML.js4
1 files changed, 1 insertions, 3 deletions
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 && [];