From d74389997106b02cf513f573a0d7197ecc511514 Mon Sep 17 00:00:00 2001 From: jeresig Date: Fri, 5 Feb 2010 19:58:08 -0500 Subject: [PATCH] Make sure that &#...; entities are encoded properly. Fixes #6042. --- src/manipulation.js | 2 +- test/unit/manipulation.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/manipulation.js b/src/manipulation.js index d8f51a1..708de89 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -4,7 +4,7 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, rtagName = /<([\w:]+)/, rtbody = /").html(valueObj(" "))[0].innerHTML, " ", "Make sure entities are passed through correctly." ); + equals( jQuery("
").html(valueObj("&"))[0].innerHTML, "&", "Make sure entities are passed through correctly." ); + reset(); // using contents will get comments regular, text, and comment nodes var j = jQuery("#nonnodes").contents(); -- 1.7.10.4