aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/core.js
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 /test/unit/core.js
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 'test/unit/core.js')
-rw-r--r--test/unit/core.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index c4c5ffa1a..17006a8ab 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -1370,20 +1370,6 @@ test("jQuery.parseHTML", function() {
ok( jQuery.parseHTML("<#if><tr><p>This is a test.</p></tr><#/if>") || true, "Garbage input should not cause error" );
});
-asyncTest("jQuery.parseHTML", function() {
- expect ( 1 );
-
- Globals.register("parseHTMLError");
-
- jQuery.globalEval("parseHTMLError = false;");
- jQuery.parseHTML( "<img src=x onerror='parseHTMLError = true'>" );
-
- window.setTimeout(function() {
- start();
- equal( window.parseHTMLError, false, "onerror eventhandler has not been called." );
- }, 2000);
-});
-
test("jQuery.parseJSON", function() {
expect( 20 );