From: jeresig Date: Sat, 6 Feb 2010 00:58:08 +0000 (-0500) Subject: Make sure that &#...; entities are encoded properly. Fixes #6042. X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=d74389997106b02cf513f573a0d7197ecc511514 Make sure that &#...; entities are encoded properly. Fixes #6042. --- 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();