X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=325f303a8316d399a654c33f33926ee43fd34e62;hb=974b5aeab7a3788ff5fb9db87b9567784e0249fc;hp=583d445be23296879e6e03de950a1c820d819c57;hpb=7175b2ffabe57fcd403ca03f2b4ff895f5012836;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 583d445..325f303 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, "