X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmanipulation.js;h=c3b8f6d0fa71c0ba125a377aa2ed384d46011dc0;hb=1f8a5e4bbc49c244051101765c46bd8f35e2aa32;hp=20a107565e01273924c990fe10b5ca2032aaacad;hpb=0d5c3a68a092401089c9242bdafdb1b2534feb6a;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 20a1075..c3b8f6d 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,39 +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, "