mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Use outerHTML to serialize unhandled DOM node in serializer
Change-Id: I37350712c9450c34025740a8d6de51344739c2b7
This commit is contained in:
parent
3c6d829708
commit
c39eb36968
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue