Land some additional tweaks related to running through JSLint.
[jquery.git] / src / manipulation.js
index 4eb19ea..529280a 100644 (file)
@@ -205,7 +205,7 @@ jQuery.fn.extend({
 
                                return jQuery.clean([html.replace(rinlinejQuery, "")
                                        // Handle the case in IE 8 where action=/test/> self-closes a tag
-                                       .replace(/=([^="'>\s]+\/)>/g, '="$1">')
+                                       .replace(/\=([^="'>\s]+\/)>/g, '="$1">')
                                        .replace(rleadingWhitespace, "")], ownerDocument)[0];
                        } else {
                                return this.cloneNode(true);
@@ -569,7 +569,10 @@ jQuery.extend({
                                }
                                
                                if ( deleteExpando ) {
-                                       delete elem[ expando ];
+                                       delete elem[ jQuery.expando ];
+
+                               } else if ( elem.removeAttribute ) {
+                                       elem.removeAttribute( jQuery.expando );
                                }
                                
                                delete cache[ id ];