Help:Lint errors/multiline-html-table-in-list

'''NOTE: This error is expected to not be very common. We are currently seeing a number of false positives in the linter output for this category. Tables used in tags end up in the references section in a list which is triggering a number of these false positives. We might be able to fix this in the first week of January since we are right now in a deployment freeze. '''

Problem
As you can tell, in both cases, the expected result is different from the markup. In Tidy, the list is lost. In Remex, the list extends to the rest of the page. A particularly bad examples is this itwiki revision where multiple lists extend onto the rest of the page.

Solution
The simplest fix would be to move the table outside the list since that most closely resembles what Tidy does. An alternative fix would be to make the HTML table be on the same line.

Why does this happen?
This is the same reason as in the Help:Extension:Linter/pwrap-bug-workaround case. The PHP parser does not have enough information to recognize HTML5 structures. It parses wikitext mostly line-by-line and can misnest HTML tags and relies on Tidy / RemexHTML to fix it up.