Use outerHTML to serialize unhandled DOM node in serializer

Change-Id: I37350712c9450c34025740a8d6de51344739c2b7
This commit is contained in:
Gabriel Wicke 2012-05-18 10:03:16 +02:00
parent 3c6d829708
commit c39eb36968

View file

@ -263,7 +263,7 @@ WSP._serializeDOM = function( node, chunkCB, state ) {
this._serializeToken( state, chunkCB,
new EndTagTk( name, tkAttribs, tkRTInfo ) );
} else {
console.warn( 'Unhandled element: ' + node.innerHTML );
console.warn( 'Unhandled element: ' + node.outerHTML );
}
break;
case Node.TEXT_NODE:
@ -274,7 +274,7 @@ WSP._serializeDOM = function( node, chunkCB, state ) {
break;
default:
console.warn( "Unhandled node type: " +
node.innerHTML );
node.outerHTML );
break;
}
};