X-Git-Url: http://git.osdn.net/view?p=pettanr%2FclientJs.git;a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F20_XNode.js;fp=0.6.x%2Fjs%2F02_dom%2F20_XNode.js;h=d80b85596c56bc8e17b668a2c9fa2f596b8fe435;hp=f09db3a1dc5e50a50876f9466af1b42c815e5ca2;hb=512e08f4d38eab417f9651277e8a50c08535cb07;hpb=103125546e3e8e3c480b6673e0a12ef818981d48 diff --git a/0.6.x/js/02_dom/20_XNode.js b/0.6.x/js/02_dom/20_XNode.js index f09db3a..d80b855 100644 --- a/0.6.x/js/02_dom/20_XNode.js +++ b/0.6.x/js/02_dom/20_XNode.js @@ -1110,7 +1110,7 @@ function X_Node_html( html ){ if( !this[ '_tag' ] ) return this[ 'text' ]( html ); this[ 'empty' ](); - if( html ){ + if( html += '' ){ X_Node_append.apply( this, X_HtmlParser_parse( html, true ) ); }; return this;