Last modified: 2010-05-15 14:36:30 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 T6461, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4461 - <span id="characters that should be encoded"> and [[#chara...]] breaks
<span id="characters that should be encoded"> and [[#chara...]] breaks
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.6.x
All Linux
: Normal blocker (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 4515
  Show dependency treegraph
 
Reported: 2006-01-03 06:59 UTC by Ævar Arnfjörð Bjarmason
Modified: 2010-05-15 14:36 UTC (History)
1 user (show)

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


Attachments

Description Ævar Arnfjörð Bjarmason 2006-01-03 06:59:58 UTC
The HTML spec mandates that id="" be encoded, we follow this in TOC headers but
not in id's specified e.g. with <span>, as a result manually specified links
within a page break if they contain characters that should be encoded.

Testcase:
"""
__FORCETOC__
== multibæt ==
* <span id="bæt">byte</span>
* [[#bæt|backlink]]
"""
The inline TOC links will work but not the manually specified backlink

TOC links are encoded as a special case in the parser (see $canonized_headline),
this needs to be put into some general encoding routine in Sanitizer or something.
Comment 1 Brion Vibber 2006-01-03 21:00:03 UTC
Well, if you specify something manually, it's... manual...
Comment 2 Ævar Arnfjörð Bjarmason 2006-01-07 08:51:11 UTC
FIXED in CVS HEAD

This bug has a parsertest called 'Sanitizer: Escaping of spaces, multibyte
characters, colons & other stuff in id=""'

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


Navigation
Links