Page MenuHomePhabricator

Visible br is shown in template
Closed, ResolvedPublic

Description

On https://en.wikipedia.org/w/index.php?title=Earth&oldid=558616159&veaction=edit , there is a visible '</br>' in the infobox.


Version: unspecified
Severity: normal

Details

Reference
bz49289

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:58 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz49289.

This bug seems to impact all infoboxes. See here an other example:
http://parsoid.wmflabs.org/en/Norman_Selfe

IMO, this could be related to the LUA code behind this template. See my comment there:
https://en.wikipedia.org/wiki/Template_talk:Infobox#Non-valid_HTML_code_.3Cbr.3E

Problem in "Module:Infobox" and "Module:HtmlBuilder" were fixed, see the comments at:
https://en.wikipedia.org/wiki/Template_talk:Infobox#Non-valid_HTML_code_.3Cbr.3E

But, we maybe still need to increase parsoid tolerance regarding this particular use case...

Thanks Kelson for getting the templates fixed. If we need to increase tolerance for this buggy use of </br>, we will have to use some hacks and suppress it, which we will if this proves to be common. But for now, fixing templates (as you got done) is still the best solution.

Bug 46705 has an idea (if/when we get around to it) to deal with bad wikitext and flag them for fixing.

[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]