X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=inline;f=src%2Fmanipulation.js;h=742ec254336bbdb583bd1aee5a82755398f46710;hb=d431519d61f55af8bd1714d00126c948d888f3a9;hp=13983fb016ef700f0e43e8b9b4e3f58a89c0b2fb;hpb=4a99fcf6e4b152706b951df584614da32b08f6e4;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 13983fb..742ec25 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -1,35 +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, "