Page MenuHomePhabricator

Nested tags without space before them don't work
Closed, ResolvedPublic

Description

When a tag is nested inside another tag with the same name and the second instance is not preceded by a whitespace, the tag is incorrectly ended there in the rendered HTML:

<tt>outer <tt>inner</tt></tt>

is rendered correctly as

<tt>outer <tt>inner</tt></tt>

Whereas

<tt>outer<tt>inner</tt></tt>

is rendered as

<tt>outer</tt>inner

The same issue is present with other formatting tags, such as <b>, <i> and <em>.


Version: 1.17.x
Severity: normal
URL: http://en.wikipedia.org/wiki/Template_talk:Tlx#Nesting_tlx_results_in_inconsistent_formatting

Details

Reference
bz26212

Event Timeline

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

Issue is only present with tidy enabled.

This occurs all the time. I tested it on test2.wikipedia.org
Mediawiki version: 1.25wmf10 (rMW317da7cc936e)

Izno claimed this task.
Izno subscribed.

This is fixed by Remex.