List of steps to reproduce (step by step, including full links if applicable):
- Navigate to https://en.wikisource.org/w/index.php?title=Special:LintErrors/stripped-tag&dir=prev
- Item marked - [[Page:Tragedies_of_Seneca_(1907)_Miller.djvu/50]]
What happens?:
The page is being reported as containing a Stripped SPAN. A third-party script indicates that this is paired with a missing SPAN
By examining the page source, there is no mismatch of SPAN tags in the page concerned. However the page does contain a situation where a closing </SPAN> is not on the same line as an opening span where an embeded <SPAN></SPAN> pair is also present.
By comparison : https://en.wikisource.org/wiki/Page:Tragedies_of_Seneca_(1907)_Miller.djvu/51 which is using a near identical approach, is NOT reported as an error, as there are no embedded SPAN's.
What should have happened instead?:
The page should be reported as error-free as there is no mismatching/missing or stripped tags actually present in the page, or the Linter used should be more intelligent in it's matching approach.
More context
<span style="margin-left:-5em">''Oedipus:'' {{gap|0.5em}}In hades shalt thou pay thy life for all, <br/> Unless thou till the secrets of the fates.</span><br/>
Is an example of the markup that causes a paired 'missing/stripped' SPAN to generate.
What I suspect may be occurring is that the Linter is not necessarily aware that it needs to collapse the end of line whitespace, even though it's seeing an embedded <SPAN></SPAN> and is thus erronously reporting something that isn't actually an error (given that elsewhere the parser is seemingly able to collapse the line-feeds automatically.