From c59bf424a1aff179ad8b5cf51c157cd5f7f8a491 Mon Sep 17 00:00:00 2001 From: John Resig Date: Fri, 2 Jan 2009 19:23:12 +0000 Subject: [PATCH] The exact escaping of the text() test isn't important - as long as < is escaped. --- test/unit/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/core.js b/test/unit/core.js index 71bfc8118..ac65dccdd 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1520,7 +1520,7 @@ test("removeAttr(String", function() { test("text(String)", function() { expect(4); - equals( jQuery("#foo").text("
Hello cruel world!
")[0].innerHTML, "<div><b>Hello</b> cruel world!</div>", "Check escaped text" ); + equals( jQuery("#foo").text("
Hello cruel world!
")[0].innerHTML.replace(/>/g, ">"), "<div><b>Hello</b> cruel world!</div>", "Check escaped text" ); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents(); -- 2.39.5