Make sure that &#...; entities are encoded properly. Fixes #6042.
This commit is contained in:
parent
54bd004e53
commit
d743899971
2 changed files with 5 additions and 2 deletions
|
@ -851,7 +851,7 @@ test("clone() on XML nodes", function() {
|
|||
}
|
||||
|
||||
var testHtml = function(valueObj) {
|
||||
expect(24);
|
||||
expect(26);
|
||||
|
||||
jQuery.scriptorder = 0;
|
||||
|
||||
|
@ -868,6 +868,9 @@ var testHtml = function(valueObj) {
|
|||
equals( div.children().length, 2, "Make sure two child nodes exist." );
|
||||
equals( div.children().children().length, 1, "Make sure that a grandchild exists." );
|
||||
|
||||
equals( jQuery("<div/>").html(valueObj(" "))[0].innerHTML, " ", "Make sure entities are passed through correctly." );
|
||||
equals( jQuery("<div/>").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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue