X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=00e31201c8c6fa5d01a7bc50672c3da237009c3a;hb=a220c81eb9d65b514fcf3090a0aae75dadf5d371;hp=233cb826360af47068da204db86673d2d42d043a;hpb=5b84c7c45c8c3c5e7c9a17239cd658b0c87ab892;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 233cb82..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, "