Page MenuHomePhabricator

Table as a description splits the description list: <dl> tag is closed just before being re-open
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue:

Use the following wikitext:

;Term
:{|
|description
|}

What happens?:

The parser outputs the following HTML with 2 <dl> elements:

<dl><dt>Term</dt></dl>
<dl><dd><table>
<tbody><tr>
<td>description
</td></tr></tbody></table></dd></dl>

What should have happened instead?:

The parser should output both <dt> and <dd> in the same <dl> element:

<dl><dt>Term</dt>
<dd><table>
<tbody><tr>
<td>description
</td></tr></tbody></table></dd></dl>

Other information:

Note Parsoid well handles the code (T262943).

Similar issue: T8776: indented embedded table leaves an unclosed DL, causing unwanted indentation

Event Timeline

Pols12 renamed this task from Table as a description split the description list: <dl> tag is closed just before being re-open to Table as a description splits the description list: <dl> tag is closed just before being re-open.Nov 6 2022, 9:38 PM