Last modified: 2013-04-13 07:58:52 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 T31625, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29625 - Qunit test for tablesorter with custom collation fails in Konqueror
Qunit test for tablesorter with custom collation fails in Konqueror
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.20.x
All Linux
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-28 07:46 UTC by Michael M.
Modified: 2013-04-13 07:58 UTC (History)
2 users (show)

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


Attachments

Description Michael M. 2011-06-28 07:46:13 UTC
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.
Comment 1 Michael M. 2013-04-13 07:58:52 UTC
Closing this old bug as WONTFIX. Konqueror 3.5 is really old, in current versions the bug causing this has been fixed (https://bugs.kde.org/show_bug.cgi?id=48182), [[de:MediaWiki:Common.js]] sets both 'Ä' and 'ä', so this isn't an actual problem.

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


Navigation
Links