X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=inline;f=src%2Fmanipulation.js;h=325f303a8316d399a654c33f33926ee43fd34e62;hb=4d7f7453dca8e385cfb02089a8d5b2c47371bba3;hp=30ba5abf5ae3008515c538ecd7d4c0935369d07d;hpb=9d8d74569c8114f9c9b0f42bca71536e154c5944;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 30ba5ab..325f303 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,51 +1,66 @@ +(function( jQuery ) { + var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, rleadingWhitespace = /^\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, "