Page MenuHomePhabricator

Nested <sub> tags do not render properly (tidy)
Closed, ResolvedPublic

Description

Author: dywiki

Description:
See above url: Wikitext says "''E''<sub>&lambda;<sub>''i''</sub></sub>", but
renders as "<em>E</em><sub>λ</sub><em>i</em> "

Skin is Col Blue, Mozilla Firefox 0.8.


Version: unspecified
Severity: normal
URL: http://en.wikipedia.org/w/wiki.phtml?title=Diagonalizable_matrix&diff=0&oldid=6232296

Details

Reference
bz599

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:57 PM
bzimport set Reference to bz599.
bzimport added a subscriber: Unknown Object (MLST).

MediaWiki currently renders nested <sub> tags just fine, but tidy is rejecting it and
rewriting the output.

I'm not sure why; validator.w3.org accepts it just fine. May be a bug in tidy.

j.niesen wrote:

I reported this as a bug of tidy at SourceForge
[http://sourceforge.net/tracker/index.php?func=detail&aid=1235296&group_id=27659&atid=390963
here]. As a result, it is now fixed in the CVS version of tidy with
[http://sourceforge.net/mailarchive/forum.php?thread_id=7724250&forum_id=8699
this patch].

Changing product to "Wikimedia web sites" as tidy need an upgrade
(if we still use it on the site).

  • Bug 3793 has been marked as a duplicate of this bug. ***
  • Bug 5084 has been marked as a duplicate of this bug. ***

gangleri wrote:

The original code (both variants) from comment 1 is available at
http://test.wikipedia.org/wiki/User:Gangleri/tests/bugzilla/00599

j.niesen wrote:

*** Bug 108 has been marked as a duplicate of this bug. ***

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:20 AM