Last modified: 2014-11-14 18:26:54 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 T23935, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21935 - action=parse does not expand character references in section titles
action=parse does not expand character references in section titles
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-23 20:42 UTC by Bjoern Hoehrmann
Modified: 2014-11-14 18:26 UTC (History)
6 users (show)

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


Attachments

Description Bjoern Hoehrmann 2009-12-23 20:42:22 UTC
Compare these two API results (parse with "= [[Y'Z]] =" vs "= [[Y'Z]] ="):

http://de.wikipedia.org/w/api.php?action=parse&text=%3D%20%5B%5BY%26%2339%3BZ%5D%5D%20%3D%0A
http://de.wikipedia.org/w/api.php?action=parse&text=%3D%20%5B%5BY'Z%5D%5D%20%3D%0A

In the HTML both come out as <a ...>Y'Z</a>, but the line attribute for the section comes out with the character reference included in the other output formats for the first case. The contents of the line attribute should match the <a>link text</a> in both cases.
Comment 1 Andre Klapper 2014-08-15 20:08:56 UTC
Still valid as per today.
Comment 2 Umherirrender 2014-11-14 18:26:54 UTC
The line attribute of the sections is wikitext and you can see that the wikitext still contains the character reference, by also requesting the wikitext:

https://de.wikipedia.org/w/api.php?action=parse&text=%3D%20%5B%5BY%26%2339%3BZ%5D%5D%20%3D%0A&prop=html|wikitext|text|sections

https://de.wikipedia.org/w/api.php?action=parse&text=%3D%20%5B%5BY'Z%5D%5D%20%3D%0A&prop=html|wikitext|text|sections

So this looks okay to me.

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


Navigation
Links