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 | |
parent | 6051609df35ef5e478c79c76534c03e4b46100bf (diff) | |
download | jquery-59232825aa87b941dd2418a6860b64017dfec0ae.tar.gz jquery-59232825aa87b941dd2418a6860b64017dfec0ae.zip |
Core: remove unnecessary support test for createHTMLDocument
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 2 | ||||
-rw-r--r-- | src/core/parseHTML.js | 7 | ||||
-rw-r--r-- | src/core/support.js | 8 |
3 files changed, 3 insertions, 14 deletions
diff --git a/src/core.js b/src/core.js index dab633f9c..fa8436a01 100644 --- a/src/core.js +++ b/src/core.js @@ -7,7 +7,7 @@ define([ "./var/class2type", "./var/toString", "./var/hasOwn", - "./core/support" + "./var/support" ], function( arr, slice, concat, push, indexOf, class2type, toString, hasOwn, support ) { var 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; -}); |