jQuery.buildFragment, ensure doc is a document; Includes comments; Adds unit test. Fixes #8950
This commit is contained in:
parent
e2bace8fa1
commit
0c2d1aee54
2 changed files with 27 additions and 5 deletions
|
@ -1382,6 +1382,15 @@ test("jQuery.buildFragment - no plain-text caching (Bug #6779)", function() {
|
|||
}
|
||||
catch(e) {}
|
||||
}
|
||||
equals($f.text(), bad.join(""), "Cached strings that match Object properties");
|
||||
equals($f.text(), bad.join(""), "Cached strings that match Object properties");
|
||||
$f.remove();
|
||||
});
|
||||
|
||||
test("jQuery.buildFragment - plain objects are not a document #8950", function() {
|
||||
expect(1);
|
||||
|
||||
try {
|
||||
jQuery('<input type="hidden">', {});
|
||||
ok( true, "Does not allow attribute object to be treated like a doc object");
|
||||
} catch (e) {}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue