X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=7dc813689579aaef7c69cd73038e49f2c430b34f;hb=04e31ff058548fbdbdf77c61d4edc3a974b080f4;hp=9ef41e07554b883391f1fd792bfdf3f77e24daaa;hpb=1b28bba4d2ba692047813cf5185a7d55e2362472;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 9ef41e0..7dc8136 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -4,7 +4,8 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, rtagName = /<([\w:]+)/, rtbody = / self-closes a tag + .replace(/\=([^="'>\s]+\/)>/g, '="$1">') .replace(rleadingWhitespace, "")], ownerDocument)[0]; } else { return this.cloneNode(true); @@ -226,7 +229,7 @@ jQuery.fn.extend({ null; // See if we can take a shortcut and just use innerHTML - } else if ( typeof value === "string" && !/ elements in a fragment + // IE 6 doesn't like it when you put or elements in a fragment // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document && - args[0].indexOf("