From c39eb369687b581b78b325d12c6842361b4bce09 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 18 May 2012 10:03:16 +0200 Subject: [PATCH] Use outerHTML to serialize unhandled DOM node in serializer Change-Id: I37350712c9450c34025740a8d6de51344739c2b7 --- modules/parser/mediawiki.WikitextSerializer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/parser/mediawiki.WikitextSerializer.js b/modules/parser/mediawiki.WikitextSerializer.js index 8cac0c83cd..bae3fea34b 100644 --- a/modules/parser/mediawiki.WikitextSerializer.js +++ b/modules/parser/mediawiki.WikitextSerializer.js @@ -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; } };