diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2014-12-09 15:57:12 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2014-12-09 15:57:12 -0500 |
commit | 59232825aa87b941dd2418a6860b64017dfec0ae (patch) | |
tree | 1b12357b493dc2264bc6204c93c1e30e8c74771d /src/core | |
parent | 6051609df35ef5e478c79c76534c03e4b46100bf (diff) | |
download | jquery-59232825aa87b941dd2418a6860b64017dfec0ae.tar.gz jquery-59232825aa87b941dd2418a6860b64017dfec0ae.zip |
Core: remove unnecessary support test for createHTMLDocument
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/parseHTML.js | 7 | ||||
-rw-r--r-- | src/core/support.js | 8 |
2 files changed, 2 insertions, 13 deletions
diff --git a/src/core/parseHTML.js b/src/core/parseHTML.js index c441b2b92..f4448b7b1 100644 --- a/src/core/parseHTML.js +++ b/src/core/parseHTML.js @@ -1,10 +1,9 @@ define([ "../core", "./var/rsingleTag", - "./support", "../manipulation" // buildFragment -], function( jQuery, rsingleTag, support ) { +], function( jQuery, rsingleTag ) { // data: string of html // context (optional): If specified, the fragment will be created in this context, @@ -20,9 +19,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) { } // document.implementation stops scripts or inline event handlers from // being executed immediately - context = context || ( support.createHTMLDocument ? - document.implementation.createHTMLDocument() : - document ); + context = context || document.implementation.createHTMLDocument(); var parsed = rsingleTag.exec( data ), scripts = !keepScripts && []; diff --git a/src/core/support.js b/src/core/support.js deleted file mode 100644 index d3ed33c04..000000000 --- a/src/core/support.js +++ /dev/null @@ -1,8 +0,0 @@ -define([ - "../var/support" -], function( support ) { - // window.document is used here as it's before the sandboxed document - support.createHTMLDocument = !!window.document.implementation.createHTMLDocument; - - return support; -}); |