Last modified: 2013-10-04 08:36:03 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 T35465, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33465 - mediawiki.Title.js should normalize titles the same way Title.php does
mediawiki.Title.js should normalize titles the same way Title.php does
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-02 09:12 UTC by Michael M.
Modified: 2013-10-04 08:36 UTC (History)
4 users (show)

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


Attachments

Description Michael M. 2012-01-02 09:12:29 UTC
Currently there are some differences between the normalizations in Title.js and Title.php:

* Invalid characters:
   Title.js replaces [, ], and other invalid characters with _.
* Unicode control characters:
   Title.php removes some control characters, while Title.js leaves them in or
   replaces them with _.
* Whitespace normalization:
   Title.php normalizes a huge variety of whitespace (notably NBSP), while
   Title.js only treats _ the same as a blank.
* HTML entities:
   Title.php replaces HTML entities with the corresponding character.
* URL encoding:
   At some point %-encoded characters are resolved in PHP, at least they are
   possible in wikilinks.

mediawiki.Title.js should aim for consistency with the PHP version.
Comment 1 Nemo 2013-03-07 16:07:53 UTC
API has some normalisation problems too.
Comment 2 Michael M. 2013-10-04 08:36:03 UTC
Fixed by Krinkle in https://gerrit.wikimedia.org/r/#/c/83047/

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


Navigation
Links