From 59232825aa87b941dd2418a6860b64017dfec0ae Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Tue, 9 Dec 2014 15:57:12 -0500 Subject: Core: remove unnecessary support test for createHTMLDocument --- src/core/parseHTML.js | 7 ++----- src/core/support.js | 8 -------- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 src/core/support.js (limited to 'src/core') 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; -}); -- cgit v1.2.3