Page MenuHomePhabricator

Infobox defect: Without infobox markup, some key/value pairs are written as a `<th><td>`
Closed, ResolvedPublic3 Estimated Story Points

Description

Some infoboxes don't use CSS classes for infobox-label and infobox-data, instead they use <th> for the label and <td> for the data

The key in the key/value is not parsed correctly. It's being added to the value part of the data. Again we have a table within a table in this scenario, which may not be the issue, but needs research.

image.png (113×220 px, 25 KB)

image.png (220×154 px, 45 KB)

Another example: Here Medal Record is a full line section, but the descendant tables are added to the name value. The child tables are parsed correctly. Test: If cell has descendant tables or cells only extract the current cells' text node?
image.png (109×220 px, 17 KB)

image.png (220×166 px, 36 KB)

If the infobox-label and infobox-data classes are not in the table row, then look for a single <th> followed by a <td>. In this case, hake the header cell the key field and the data cell the value