mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 11:45:20 -05:00
Core: revert addition of createHTMLDocument. Thanks, Safari 8.
- Safari 8 has issues when the HTML string contains forms. Closing tags are not respected.
This commit is contained in:
@@ -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 && [];
|
||||
|
||||
Reference in New Issue
Block a user