Page MenuHomePhabricator

CSS class reference-text missing when reference starts with a table
Closed, ResolvedPublic

Description

My first guess is that Tidy is the culprit. Try the input

<ref>foo</ref><ref><div>bar</div></ref><ref><table><tr><td>baz</td></tr></table></ref>
<references />

on Wikipedia.
The first reference is correctly wrapped in a <span class="reference-text">, in the second reference this span is moved inside the <div>, in the third it is missing completely.


Version: unspecified
Severity: normal

Details

Reference
bz38661

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:00 AM
bzimport added a project: Cite.
bzimport set Reference to bz38661.
bzimport added a subscriber: Unknown Object (MLST).

You are putting HTML block elements into inline elements. Tidy is rightfully cleaning up.

mr.heat wrote:

Marking bug 38661 as a duplicate of the more specific and more commented bug 47544. Whats described here is an effect of the bad HTML nesting described in bug 47544.

*** This bug has been marked as a duplicate of bug 47544 ***