X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=7500730f9d699b27d63f9f22e0a5462b99b48e5f;hb=61e37d41490aed319a176c6ca7feb95e5505059c;hp=20a107565e01273924c990fe10b5ca2032aaacad;hpb=0d5c3a68a092401089c9242bdafdb1b2534feb6a;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 20a1075..7500730 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,39 +1,71 @@ -jQuery.fn.extend({ - text: function( text ) { - if ( typeof text !== "object" && text != null ) - return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); +var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + rleadingWhitespace = /^\s+/, + rxhtmlTag = /(<([\w:]+)[^>]*?)\/>/g, + rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, + rtagName = /<([\w:]+)/, + rtbody = /"; + }, + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "
", "
" ], + thead: [ 1, "", "
" ], + tr: [ 2, "", "
" ], + td: [ 3, "", "
" ], + col: [ 2, "", "
" ], + area: [ 1, "", "" ], + _default: [ 0, "", "" ] + }; + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; - var ret = ""; +// IE can't serialize and