Use createTextNode in wikitext converter

Has better browser support. innerText is for getting the
text as rendered.

Bug: T147584
Change-Id: Ie2cf732d537aa4053d5b45d85c2d678a0d338017
This commit is contained in:
Ed Sanders 2016-10-06 14:50:08 -04:00
parent c8f3474f3d
commit 01ed8e954e

View file

@ -164,7 +164,7 @@ ve.init.mw.DesktopWikitextArticleTarget.prototype.parseHtml = function ( content
content.split( '\n' ).forEach( function ( line ) {
var p = doc.createElement( 'p' );
p.innerText = line;
p.appendChild( doc.createTextNode( line ) );
doc.body.appendChild( p );
} );