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

       Web browser: ---
             Bug #: 29625
           Summary: Qunit test for tablesorter with custom collation fails
                    in Konqueror
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Javascript
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


The test
jquery.tablesorter.test.js: Accented Characters with custom collation
fails in
Konqueror 3.5 (Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.9 (like
Gecko) SUSE)
with
Died on test #1: Undefined value - { "name": "TypeError", "message": "Undefined
value", "message": "Undefined value", "line": 718 }
due to strange behavior with non-ASCII lower-/uppercase.

Take as example the following HTML:

<html><head><meta http-equiv="content-type" content="text/html; charset=utf8"
/><title>Test</title><script ctype="text/javascript">
alert('ä'.toUpperCase());
alert('Ä'.toLowerCase());
alert('Ä'.search(/ä/i));
</script></head><body></body></html>

All my other browsers show Ä - ä - 0. But Konqueror shows ä - Ä - 0 (sic!), i.
e. toUpperCase and toLowerCase don't work with non-ASCII characters, while the
i-flag in RegExps does work.

If you set
mw.config.set('tableSorterCollation', {'ä': 'ae', 'Ä': 'ae', 'ö' : 'oe', 'Ö':
'oe', 'ß': 'ss', 'ü':'ue', 'Ü': 'ue'});
the test works in Konqueror, too.

The tablesorter plugin should take care that strange settings for
tableSorterCollation at least don't throw an error (somewhere in the format
function in ts.addParser({id: 'text'})).
The documentation (if there is any) should advise to include both lower and
upper case letters in tableSorterCollation.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to