Jump to content

Help talk:Lint errors/missing-end-tag

About this board

Wladek92 (talkcontribs)

adding depends on the context. If an opening tag is present due to a wrong paste, then it should be deleted and not closed. This must be precised as a second way of fixing. Thanks. -- Christian šŸ‡«šŸ‡· FR (talk) 06:59, 2 December 2023 (UTC)

SSastry (WMF) (talkcontribs)

Possibly yes. I think editors fixing lints might be aware of this already, but feel free to update the help page if you think it might be useful to others.

Reply to "adding or deleting ?"
Summary by SSastry (WMF)

Confusion arises because of paragraph tags causing the missing end/open tags.

Wladek92 (talkcontribs)

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)

SSastry (WMF) (talkcontribs)

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.

<div/> tags ommited for styling purposes

1
He7d3r (talkcontribs)

For some (user) talk pages, users want to add e.g. borders around all the content and do this by opening something like a <div style="border:1px solid gray;"> leaving it unclosed, so that all new comments appear to be inside of these borders (see an example from ptwiki). In such cases users consider it convenient to omit the end tag, because if they closed it, new comments would be after the borders, and they would need to move the end tag manually afterwards.

Is there a good/supported way to do this without introducing errors?

Reply to "<div/> tags ommited for styling purposes"
Summary by SSastry (WMF)

Tracked in T171381

Base (talkcontribs)
SSastry (WMF) (talkcontribs)
There are no older topics