Page MenuHomePhabricator

HTMLtidy moves whitespace around
Closed, DuplicatePublic


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


"<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



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 linter category. Once Tidy is replaced, this will cease to be an issue.