X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=3054eea1d3a259f756cc14e3a255f86dc4346bc2;hb=bca576550249e9b79b1097669dff6d4ddd0d65cf;hp=233cb826360af47068da204db86673d2d42d043a;hpb=5b84c7c45c8c3c5e7c9a17239cd658b0c87ab892;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 233cb82..3054eea 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,35 +1,76 @@ -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 = /(<([\w:]+)[^>]*?)\/>/g, + rselfClosing = /^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i, + rtagName = /<([\w:]+)/, + rtbody = /
" + tag + ">"; + }, + wrapMap = { + option: [ 1, "" ], + legend: [ 1, "" ], + thead: [ 1, "