https://bugzilla.wikimedia.org/show_bug.cgi?id=33465

       Web browser: ---
             Bug #: 33465
           Summary: mediawiki.Title.js should normalize titles the same
                    way Title.php does
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: listenle...@gmail.com
                CC: krinklem...@gmail.com, tpars...@wikimedia.org
    Classification: Unclassified


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to