* If there was no destructive operation before, an empty set is returned.
*
* A 'destructive' operation is any operation that changes the set of
- * matched jQuery elements. These functions are:
- * These functions are:
- *
- * <code>add</code>
- *
- * <code>children</code>
- *
- * <code>clone</code>
- *
- * <code>filter</code>
- *
- * <code>find</code>
- *
- * <code>not</code>
- *
- * <code>next</code>
- *
- * <code>parent</code>
- *
- * <code>parents</code>
- *
- * <code>prev</code>
- *
- * <code>siblings</code>
+ * matched jQuery elements. These functions are: <code>add</code>,
+ * <code>children</code>, <code>clone</code>, <code>filter</code>,
+ * <code>find</code>, <code>not</code>, <code>next</code>,
+ * <code>parent</code>, <code>parents</code>, <code>prev</code> and <code>siblings</code>.
*
* @example $("p").find("span").end();
* @before <p><span>Hello</span>, how are you?</p>
* Please note: the expression cannot use a reference to the
* element name. See the two examples below.
*
- * This will not work: $(".res img").not("img[@src$=on]")
- *
- * This will: $(".res img").not("[@src$=on]"); // also could be written $(".res img:not([@src$=on])")
- *
* @example $("p").not( $("div p.selected") )
* @before <div><p>Hello</p><p class="selected">Hello Again</p></div>
* @result [ <p>Hello</p> ]
},
/**
- * A generic iterator function, which can be used to seemlessly
+ * A generic iterator function, which can be used to seamlessly
* iterate over both objects and arrays. This function is not the same
* as $().each() - which is used to iterate, exclusively, over a jQuery
* object. This function can be used to iterate over anything.
[0,"",""];
// Go to html and back, then peel off extra wrappers
- div.innerHTML = wrap[1] + s + wrap[2];
+ div.innerHTML = wrap[1] + arg + wrap[2];
// Move to the right depth
while ( wrap[0]-- )
}
- arg = div.childNodes;
+ arg = jQuery.makeArray( div.childNodes[i] );
}
if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )
*/
/**
- * Set the CSS width of every matched element. If no explicit unit
+ * Set the CSS height of every matched element. If no explicit unit
* was specified (like 'em' or '%') then "px" is added to the width.
*
* @example $("p").height(20);