X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=325f303a8316d399a654c33f33926ee43fd34e62;hb=97dfa0d5a85a32fe56aba837bbf2bc889b092d2b;hp=57b607a9b865d9a5d78bb7251cee37fc4244668d;hpb=35951021545a3ae88018fc5ea3bebd1bc7d09c6a;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 57b607a..325f303 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 ) ); +(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, "