Last modified: 2013-10-04 08:36:03 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.
API has some normalisation problems too.
Fixed by Krinkle in https://gerrit.wikimedia.org/r/#/c/83047/