Page MenuHomePhabricator

HTMLtidy moves whitespace around
Closed, DuplicatePublic

Description

HTML tidy moves whitespace around, including in some cases where this is not desirable, for instance:

en:Template:Coord/link

"<span class="geo-multi-punct"> / </span>" is changed to " <span class="geo-multi-punct">/</span> ". This is not desirable because this span is "display:none" for most people, but HTMLtidy makes the spaces show up in elements that are visible by default. The only way to fix this atm seems to be to use "<span class="geo-multi-punct">&#xfeff; / &#xfeff;</span>", which is terrible of course. It would be nice if this part of HTMLtidy could be disabled, since it is supposed to be non-visual cosmetic cleanup done by HTMLtidy, but turns out to be visual in en.wp in some conditions.


Version: unspecified
Severity: normal

Details

Reference
bz18851

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:41 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz18851.
bzimport added a subscriber: Unknown Object (MLST).
TheDJ created this task.May 20 2009, 9:54 AM
Danny_B removed a subscriber: wikibugs-l-list.
ssastry added a subscriber: ssastry.

This is also tracked by the https://www.mediawiki.org/wiki/Help:Extension:Linter/tidy-whitespace-bug linter category. Once Tidy is replaced, this will cease to be an issue.