Page MenuHomePhabricator

<tag /> handling
Closed, ResolvedPublic

Description

Author: gangleri

Description:
Hallo!

This is an open issue from
Bug 5476: </div> visible in Edit-Text in German translation

<center><font id="bug" />Hello world!‎</center>
renders as
Hello world!‎</center>

<div><font id="oops" />Oops!‎</div>
renders as
Oops!‎</div>

Please read about the browser source code details at
bug 5476 comment 2

Bug 5476 was claused be cause the MediaWiki message was changed where a <p> was
used.
The software / the code was not touched.

I assume that a parsertest should be added about this topic.

best regards reinhardt [[user:gangleri]]

*note*
*If* HTML defines hierarhical levels for the entities <p>, <div>, <span> (etc.?)
do we respect these levels?


Version: unspecified
Severity: trivial
URL: http://test.leuksman.com/view/User_talk:195.148.193.2#05476

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:10 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz5487.
bzimport added a subscriber: Unknown Object (MLST).

<center><font id="bug" />Hello world!‎</center> is useless and should
be fixed manually. We are not going to fix every stuff like that
automaticly.

Bugs in the parser are bugs and should be fixed.

Fixed in trunk@13968, parsertest passed.

Added a parsertest.

The incorrectly self-closed tag is escaped and shown with &lt; / &gt;

Change 350901 had a related patch set uploaded (by C. Scott Ananian; owner: C. Scott Ananian):
[mediawiki/services/parsoid@master] Fix self-closed HTML tag test.

https://gerrit.wikimedia.org/r/350901

Change 350901 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Fix self-closed HTML tag test.

https://gerrit.wikimedia.org/r/350901