X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fmanipulation.js;h=081bb54819c6866f362ad443cbe962d477eec8c0;hb=4681216c4bdf25b6b146b3f952917f46079c6ef7;hp=730dfca5e1296d299a05676f74f423845cd09202;hpb=2526e293538c0959597fee60976b4360390d69e0;p=jquery.git diff --git a/src/manipulation.js b/src/manipulation.js index 730dfca..081bb54 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -173,7 +173,7 @@ jQuery.fn.extend({ html: function( value ) { if ( value === undefined ) { - return this[0] ? + return this[0] && this[0].nodeType === 1 ? this[0].innerHTML.replace(rinlinejQuery, "") : null;