When replacing <font> that wraps a link with a <span>, the HTML hierarchy is inversed, such that the link is the innermost element. I have created a minimal test case at https://sv.wikipedia.org/w/index.php?oldid=40896346. Unfortunately, when this happens, any color that the <font> element had is no longer visible, which means the intructions at https://www.mediawiki.org/wiki/Help:Extension:Linter/obsolete-tag aren't adequate.
Description
Description
Related Objects
Related Objects
- Mentioned In
- T25467: sig preview not accurate, disregards html-tidy effects
T177784: Parsoid uses the wikipedia interwiki prefix for english wikipedia instead of the :en interwiki prefix
T96923: html2wt should not need access to original source - Mentioned Here
- rGPARa3be9cfcf076: Add new categories to tools/compare.linter.results.js
T25467: sig preview not accurate, disregards html-tidy effects
T96923: html2wt should not need access to original source
T177784: Parsoid uses the wikipedia interwiki prefix for english wikipedia instead of the :en interwiki prefix
Event Timeline
Comment Actions
Tidy
[subbu@earth maintenance] echo '<font>[[Foo]]</font>' | php parse.php --tidy <div class="mw-parser-output"><p><a href="/wiki/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"><font>Foo</font></a></p> </div>
Remex
[subbu@earth maintenance] echo '<font>[[Foo]]</font>' | php parse.php --tidy <div class="mw-parser-output"><p><font><a href="/wiki/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">Foo</a></font> </p></div>
So, yes, this is Tidy. So, nothing to fix here since this will go away when Tidy is replaced.