X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=00e31201c8c6fa5d01a7bc50672c3da237009c3a;hb=9dc6e0c572b9c809a3a4c123071d96d48a01dd1c;hp=59973deee8ba546bd1612eab9a471f38b61da690;hpb=7d7a960035b7431887581c9cef09eaaef28e3d27;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 59973de..00e3120 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,35 +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 ) ); +(function( jQuery ) { + +var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, + rtagName = /<([\w:]+)/, + rtbody = /
\s]+\/)>/g, + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "" ], + thead: [ 1, "