Help:Lint errors/html5-misnesting

Tidy output
Tidy cleans up the PHP parser output to generate

HTML5 output (ex: Parsoid, RemexHTML)
But, a HTML5 based tool cleans up the PHP parser output differently to generate

Recommended fix
Change the wikitext to:

Other tips
One of the main ways this affects wiki pages is when a span (or any other tag in the list of Affected Tags below) is used to wrap a list. Because of the interactions between a bug in the PHP parser (which is hard to fix and is the reason for the pwrap-bug-workaround linter category -- Parsoid does not have this bug) and the HTML5 parsing spec, when Tidy is removed, these wrappers will no longer apply to the list.

When a tag is used to wrap a list, use a tag instead. It is the correct way to do it since a list is a block structure and is more appropriate instead of which makes more sense in inline text contexts. This is the recommended fix. See this edit on the italian wikipedia for an example.

But, where appropriate, consider fixes like those in the table below.

Affected tags
The following tags are affected.

See more

 * https://phabricator.wikimedia.org/T176353
 * https://phabricator.wikimedia.org/T176363