Landed a proper fix for #3255 - which involves doing createElement instead of going through the normal clean method.

This commit is contained in:
John Resig 2009-01-03 00:51:07 +00:00
parent cff37cc835
commit c0294278db
2 changed files with 12 additions and 8 deletions

View file

@ -254,7 +254,7 @@ test("isFunction", function() {
var foo = false;
test("jQuery('html')", function() {
expect(6);
expect(8);
reset();
foo = false;
@ -267,7 +267,9 @@ test("jQuery('html')", function() {
reset();
ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" );
reset();
ok( !jQuery("<script/>")[0].parentNode, "Create a script" );
ok( jQuery("<input/>").attr("type", "hidden"), "Create an input and set the type." );
var j = jQuery("<span>hi</span> there <!-- mon ami -->");
ok( j.length >= 2, "Check node,textnode,comment creation (some browsers delete comments)" );