As a tool developer, I want to embed diffs generated by Wikibase in my tool, in order to present an edit to my users.
Wikibase wraps time values in diffs in <h4> elements. On Wikibase pages, this looks fine, due to the stylesheets in effect (I’m not sure if the relevant stylesheets are by Wikibase or general to MediaWiki):
However, when embedded in an external tool a using different set of stylesheets, the heading becomes disturbingly large:
I’m not sure why we use <h4> elements for this. (They seem to have been introduced in PS4 of I29c083b31c.) Semantically, I’m pretty sure the date values are not headings. This also causes at least one other issue, see T87021.
As far as I can tell from the code, quantity and globe coordinate diffs also use <h4> elements, though I don’t recall those being problematic in SpeedPatrolling – I suppose they’re just less frequent.
- random example edit on Wikidata: https://www.wikidata.org/w/index.php?diff=910428737
- the same edit in SpeedPatrolling: https://tools.wmflabs.org/speedpatrolling/diff/910428737/
- time, quantity and globe coordinate diffs no longer use heading elements