X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=00e31201c8c6fa5d01a7bc50672c3da237009c3a;hb=626624a19a6cbd70b44da08ee2123ba79f8e2bb0;hp=f577cf83772928522e2c42e70ccff2114d788207;hpb=f57d93bf18a2d5c3b7a0b50da67cf6147aa389c3;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index f577cf8..00e3120 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,52 +1,66 @@ +(function( jQuery ) { + var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rleadingWhitespace = /^\s+/, - rsingleTag = /^<(\w+)\s*\/?>$/, - rxhtmlTag = /(<(\w+)[^>]*?)\/>/g, - rselfClosing = /^(?:abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i, - rinsideTable = /^<(thead|tbody|tfoot|colg|cap)/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, + rtagName = /<([\w:]+)/, rtbody = /
" + tag + ">"; - }); + rhtml = /<|?\w+;/, + rnocache = /<(?:script|object|embed|option|style)/i, + rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, // checked="checked" or checked (html5) + raction = /\=([^="'>\s]+\/)>/g, + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "" ], + thead: [ 1, "