X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=529280a62ab1644576c88322f26ff99eb6341406;hb=8c8f685a911c811e9b998958dd453a6a2b9d5940;hp=4eb19eaf0271b5b84796d1fe195f9b793d9ddefc;hpb=9195107dbb13ad34ae4e9f7cb1df5d79e4748560;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 4eb19ea..529280a 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -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 ];