To be coherent examples 2 and 3 should not be presented under this form since the closing tags are present there ... and normally do not produce de announced errors because they are already corrected. Am I wrongĀ ? Thanks. --Christian š«š· FR (talk) 06:52, 2 December 2023 (UTC)
Topic on Help talk:Lint errors/missing-end-tag
Ya, I think more explanation there might have been helpful. <span> is a phrasing (in HTML5) or inline (in HTML4) tag. So, "<span>Foo\n\nBaz\n</span>" generates "<p><span>Foo</p>\n\n<p>Baz\n</span></p>" as output. In this output the two first span tag does indeed have a missing end tag and the one in the second paragraph has a missing opening tag and hence gets removed/stripped.