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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10393, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8393 - Allow some HTML tags through to table of contents
Allow some HTML tags through to table of contents
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal enhancement with 2 votes (vote)
: ---
Assigned To: Aryeh Gregor (not reading bugmail, please e-mail directly)
: easy
Depends on:
Blocks:
  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: ---


Attachments

Description Benjamin Ingberg 2006-12-26 15:38:08 UTC
I recently edited the wikipedia article about heat death:
http://en.wikipedia.org/wiki/Heat_death_of_the_universe

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 
1040).

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.


Navigation
Links