X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=583d445be23296879e6e03de950a1c820d819c57;hb=7175b2ffabe57fcd403ca03f2b4ff895f5012836;hp=0051bbc0b343452c931a2cd99abdcb588dbd8167;hpb=0ac9898d6b7200075d20e36d7c31ad77585c8778;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 0051bbc..583d445 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -4,7 +4,12 @@ var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rxhtmlTag = /(<(\w+)[^>]*?)\/>/g, rselfClosing = /^(?:abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i, rinsideTable = /^<(thead|tbody|tfoot|colg|cap)/, - rtbody = /"; + }; jQuery.fn.extend({ text: function( text ) { @@ -303,11 +308,7 @@ jQuery.extend({ // Convert html string into DOM nodes if ( typeof elem === "string" ) { // Fix "XHTML"-style tags in all browsers - elem = elem.replace(rxhtmlTag, function(all, front, tag){ - return rselfClosing.test(tag) ? - all : - front + ">"; - }); + elem = elem.replace(rxhtmlTag, fcloseTag); // Trim whitespace, otherwise indexOf won't work as expected var tags = elem.replace(rleadingWhitespace, "")