X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=inline;f=src%2Fmanipulation.js;h=325f303a8316d399a654c33f33926ee43fd34e62;hb=0564553bf15cd54eb5af18810bf2e9300628ccc1;hp=9406aa83949e2b490fed5fcd9c48731998f33da3;hpb=ec7fdf37235583a807b3f08e146edaadc81ca974;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 9406aa8..325f303 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,39 +1,66 @@ -jQuery.fn.extend({ - text: function( text ) { - if ( typeof text !== "object" && text !== undefined ) - 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, "