Last modified: 2010-05-15 15:37:39 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 T4567, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2567 - & should be escaped to & in pages' category titles
& should be escaped to & in pages' category titles
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.5.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/Mary_II_...
:
Depends on:
Blocks: html
  Show dependency treegraph
 
Reported: 2005-06-28 13:25 UTC by Zigger
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Attachments

Description Zigger 2005-06-28 13:25:52 UTC
& is not being escaped to & within the category titles for a normal page or
a category page.

If a page contains "[[Category:A & B]]", the category list entry text is
rendered in (X)HTML as "A & B" instead of "A & B".  v1.4.5 renders this
correctly.

XML 1.0 reference: http://www.w3.org/TR/REC-xml/#syntax
Comment 1 JeLuF 2005-06-28 19:25:34 UTC
Has this been fixed in the meantime?

- HTML source shows & to me
-
http://validator.w3.org/check?verbose=1&uri=http%3A//en.wikipedia.org/wiki/Mary_II_of_England
  says it's valid XHTML.

=> Closing, please reopen if not fixed.
Comment 2 Zigger 2005-06-28 19:35:41 UTC
(In reply to comment #1)
> Has this been fixed in the meantime?
No

> - HTML source shows & to me
Look for "English & British", it's one of the category titles.

>
http://validator.w3.org/check?verbose=1&uri=http%3A//en.wikipedia.org/wiki/Mary_II_of_England
>   says it's valid XHTML.
True.  But it's parse tree shows the unescaped &.  So I should try looking-up /
reporting a bug there sometime.  Tidy finds the error.

> => Closing, please reopen if not fixed.
Reopened.
Comment 3 Brion Vibber 2005-06-28 19:40:27 UTC
Specifically:

<a href="/wiki/Category:Heirs_to_the_English_%26_British_thrones" 
title="Category:Heirs to the English &amp; British thrones">Heirs to the English & 
British thrones</a>
Comment 4 Brion Vibber 2005-06-28 20:00:06 UTC
Ok, fixed now in CVS HEAD and live:
<a href="/wiki/Category:Heirs_to_the_English_%26_British_thrones" 
title="Category:Heirs to the English &amp; British thrones">Heirs to the English 
&amp; British thrones</a>

Removed parsertext keywords; the parser test framework cannot cover this as it's 
outside of the main text output.

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


Navigation
Links