mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
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:
parent
c8f3474f3d
commit
01ed8e954e
|
@ -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 );
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in a new issue