Clean up for revision 1462: "Fix for Safari crashes when doing DOM Manipulations...
[jquery.git] / src / jquery / jquery.js
index 12ec613..48d7447 100644 (file)
@@ -774,30 +774,10 @@ jQuery.fn = jQuery.prototype = {
         * 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>
@@ -952,10 +932,6 @@ jQuery.fn = jQuery.prototype = {
         * 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> ]
@@ -1496,7 +1472,7 @@ jQuery.extend({
                                        [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]-- )
@@ -1519,7 +1495,7 @@ jQuery.extend({
                                        
                                }
                                
-                               arg = div.childNodes;
+                               arg = jQuery.makeArray( div.childNodes[i] );
                        }
 
                        if ( arg.length === 0 && !jQuery.nodeName(arg, "form") )