From 5f1aa2354aeffa787e40d44224a1b583b7c89666 Mon Sep 17 00:00:00 2001 From: ruado1987 Date: Sun, 2 Jun 2013 14:32:48 +0800 Subject: Fixes #13976: Garbage input should not cause error in buildFragment. Close gh-1284 --- test/unit/core.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit/core.js b/test/unit/core.js index 7770000e5..5fba3cf28 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1272,7 +1272,7 @@ test("jQuery.proxy", function(){ }); test("jQuery.parseHTML", function() { - expect( 17 ); + expect( 18 ); var html, nodes; @@ -1308,6 +1308,7 @@ test("jQuery.parseHTML", function() { equal( jQuery.parseHTML("").length, 1, "Incorrect html-strings should not break anything" ); equal( jQuery.parseHTML("")[ 1 ].parentNode.nodeType, 11, "parentNode should be documentFragment for wrapMap (variable in manipulation module) elements too" ); + ok( jQuery.parseHTML("<#if>

This is a test.

<#/if>") || true, "Garbage input should not cause error" ); }); test("jQuery.parseJSON", function(){ -- cgit v1.2.3