Steps to replicate the issue:
- Customize https://www.mediawiki.org/wiki/MediaWiki:Mainpage-title and/or https://www.mediawiki.org/wiki/MediaWiki:Mainpage-title-loggedin .
- Navigate to the main page ( https://www.mediawiki.org/wiki/MediaWiki )
What happens?:
HTML looks something like:
<h1 id="firstHeading" class="firstHeading mw-first-heading"> <p>MediaWiki is a collaboration and documentation platform brought to you by a vibrant community.</p><!--__DTHASLEDECONTENT__--><!--__DTEMPTYTALKPAGE__--> </h1>
What should have happened instead?:
The HTML expected for a heading elsewhere as with e.g. https://www.mediawiki.org/wiki/Download :
<h1 id="firstHeading" class="firstHeading mw-first-heading"> <span class="mw-page-title-main">Download</span> </h1>
The diff is the span with class versus the p.
Software version: 1.40.0-wmf.18 (00e0651) 16:17, 9 January 2023
Other information:
An h1 allows only phrasing content, so this also constitutes invalid HTML since a p is flow content, though of course it renders... reasonably. But also differently due to the p's margins. I had been trying to figure out why it looked different only to have my attention drawn from a different direction by someone on Discord trying to troubleshoot why their output on some page of their wiki had the expected span and thinking that https://www.mediawiki.org/wiki/MediaWiki was representative of general output for the h1 in MediaWiki.