deepEqual(jQuery("#sndp").add("#en").add("#sap").get(),q("sndp","en","sap"),"Check elements from document");
vardivs;
deepEqual(jQuery("#sndp").add(jQuery("#en")[0]).add(jQuery("#sap")).get(),q("sndp","en","sap"),"Check elements from document");
// We no longer support .add(form.elements), unfortunately.
deepEqual(
// There is no way, in browsers, to reliably determine the difference
jQuery("#sndp").add("#en").add("#sap").toArray(),
// between form.elements and form - and doing .add(form) and having it
q("sndp","en","sap"),
// add the form elements is way to unexpected, so this gets the boot.
"Check elements from document"
// ok( jQuery([]).add(jQuery("#form")[0].elements).length >= 13, "Check elements from array" );
);
// For the time being, we're discontinuing support for jQuery(form.elements) since it's ambiguous in IE
// use jQuery([]).add(form.elements) instead.
//equal( jQuery([]).add(jQuery("#form")[0].elements).length, jQuery(jQuery("#form")[0].elements).length, "Array in constructor must equals array in add()" );
divs=jQuery("<div/>").add("#sndp");
divs=jQuery("<div/>").add("#sndp");
ok(divs[0].parentNode,"Sort with the disconnected node last (started with disconnected first).");
ok(divs[0].parentNode,"Sort with the disconnected node last (started with disconnected first).");
equal(jQuery([]).add(document.getElementById("form")).length,1,"Add a form");
equal(jQuery([]).add(document.getElementById("form")).length,1,"Add a form");
equal(jQuery([]).add(document.getElementById("select1")).length,1,"Add a select");
equal(jQuery([]).add(document.getElementById("select1")).length,1,"Add a select");
// We no longer support .add(form.elements), unfortunately.
// There is no way, in browsers, to reliably determine the difference
// between form.elements and form - and doing .add(form) and having it
// add the form elements is way to unexpected, so this gets the boot.
//ok( jQuery([]).add(jQuery("#form")[0].elements).length >= 13, "Check elements from array" );
// For the time being, we're discontinuing support for jQuery(form.elements) since it's ambiguous in IE
// use jQuery([]).add(form.elements) instead.
//equal( jQuery([]).add(jQuery("#form")[0].elements).length, jQuery(jQuery("#form")[0].elements).length, "Array in constructor must equals array in add()" );