Last modified: 2007-08-29 00:08:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8393 - Allow some HTML tags through to table of contents
Allow some HTML tags through to table of contents
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Aryeh Gregor (not reading bugmail, please e-mail directly)
: easy
Depends on:
  Show dependency treegraph
Reported: 2006-12-26 15:38 UTC by Benjamin Ingberg
Modified: 2007-08-29 00:08 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Benjamin Ingberg 2006-12-26 15:38:08 UTC
I recently edited the wikipedia article about heat death:

The edit consisted of me changing all the 10<sup>xx</sup> into 10Exx in the headers. Because the 
table of contents changed 10<sup>xx</sup> into 10xx (for example 10<sup>40</sup> looked like 

I suppose the same could be said for subscripts but I haven't tried that.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-26 17:25:07 UTC
HTML tags are currently stripped.  It would probably be sensible to make an
exception for <sup> and <sub>, maybe also <s>, <u>, and <del>/<ins>, but then
you start getting into issues of people setting weird styles and getting
non-blue or otherwise weird links.  At least <sup> and <sub> should be
whitelisted, because those aren't too uncommon and stripping them results in
flat-out wrong output (e.g., 10^22 -> 1022).
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-08-29 00:08:42 UTC
Fixed in r25260 for <sup> and <sub>.  I left alone behavior for other attributes.

Note You need to log in before you can comment on or make changes to this bug.