This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deepEqual(jQuery("#sndp").add("#en").add("#sap").get(),q("sndp","en","sap"),"Check elements from document");
deepEqual(jQuery("#sndp").add(jQuery("#en")[0]).add(jQuery("#sap")).get(),q("sndp","en","sap"),"Check elements from document");
vardivs;
// 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()" );
deepEqual(
jQuery("#sndp").add("#en").add("#sap").toArray(),
q("sndp","en","sap"),
"Check elements from document"
);
divs=jQuery("<div/>").add("#sndp");
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("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()" );
b39ee05
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name of the component should be begin with uppercase letter