Page MenuHomePhabricator

VisualEditor: Preview from MWAlienInspector of a syntaxhighlight block shows text HTML encoded when it shouldn't
Closed, ResolvedPublic

Description

Steps to reproduce:

  • create a simple page with just this text: <syntaxhighlight lang="xml">></syntaxhighlight>
  • example page: https://test2.wikipedia.org/wiki/Codez
  • when the page is saved, only this is displayed, as expected: >
  • edit the page with visual editor
  • edit the text using syntaxhighlight editor
  • for example, add just this: <
  • see attached screen shot #1
  • use "back" icon to see how the text will look like
  • I was expecting to see this as page text: ><
  • instead, the preview says page text is: &gt;&lt;
  • see attached screen shot #2
  • when the page is saved, the text is displayed correctly: ><
  • see attached screen shot #3

Version: unspecified
Severity: minor

Details

Reference
bz60332

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:55 AM
bzimport set Reference to bz60332.

Created attachment 14355
screen shot #1

Attached:

1.png (821×1 px, 176 KB)

Created attachment 14356
screen shot #2

Attached:

2.png (821×1 px, 182 KB)

Created attachment 14357
screen shot #3

Attached:

3.png (821×1 px, 168 KB)

  • Bug 66456 has been marked as a duplicate of this bug. ***

This is actually the same issue as bug 57429, let's merge the bugs.

  • This bug has been marked as a duplicate of bug 57429 ***