X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=inline;f=src%2Fmanipulation.js;h=9ed22baaf848ba2451fbf59e165828af6e189d8a;hb=4fa00369f00b8ee708c8962135b7aa345e3d30d0;hp=b5ace4d73b4dd755ac9effc148969d560b99214a;hpb=991dafae16e44512c5107b90bc8ce9675d8f5c12;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index b5ace4d..9ed22ba 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,39 +1,72 @@ -jQuery.fn.extend({ - text: function( text ) { - if ( typeof text !== "object" && text != null ) - return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); +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, "