aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorruado1987 <ruado1987@gmail.com>2013-06-02 14:32:48 +0800
committerOleg <markelog@gmail.com>2013-07-01 22:31:01 +0400
commit5f1aa2354aeffa787e40d44224a1b583b7c89666 (patch)
tree1f3f5853a1739b1730cadf820cfbfbb4091dd545 /test
parent308980ee2a5c85ba1600446d093edc921f9a71de (diff)
downloadjquery-5f1aa2354aeffa787e40d44224a1b583b7c89666.tar.gz
jquery-5f1aa2354aeffa787e40d44224a1b583b7c89666.zip
Fixes #13976: Garbage input should not cause error in buildFragment. Close gh-1284
Diffstat (limited to 'test')
-rw-r--r--test/unit/core.js3
1 files changed, 2 insertions, 1 deletions
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("<span><span>").length, 1, "Incorrect html-strings should not break anything" );
equal( jQuery.parseHTML("<td><td>")[ 1 ].parentNode.nodeType, 11,
"parentNode should be documentFragment for wrapMap (variable in manipulation module) elements too" );
+ ok( jQuery.parseHTML("<#if><tr><p>This is a test.</p></tr><#/if>") || true, "Garbage input should not cause error" );
});
test("jQuery.parseJSON", function(){