RESOLVED WORKSFORME14117
string localeCompare() method doesn't return same values as IE or Firefox
https://bugs.webkit.org/show_bug.cgi?id=14117
Summary string localeCompare() method doesn't return same values as IE or Firefox
Helen Emerson
Reported 2007-06-13 04:30:25 PDT
the string localeCompare() method returns different values in windows safari than it does in IE and Firefox. I've attached a little sample file that demonstrates the problem. Steps to reproduce: 1. Run the sample 2. Click the "compare" button Actual Result: In Safari it's returning 1 for less than, 2 for equals and 3 for greater than Expected result: In IE and Firefox it's returning -1 for less than, 0 for equals and 3 for greater than
Attachments
Test case (1.28 KB, text/html)
2007-06-13 04:31 PDT, Helen Emerson
no flags
Safari results (32.86 KB, image/pjpeg)
2007-06-13 04:32 PDT, Helen Emerson
no flags
IE results (50.45 KB, image/pjpeg)
2007-06-13 04:32 PDT, Helen Emerson
no flags
Firefox results (51.62 KB, image/pjpeg)
2007-06-13 04:32 PDT, Helen Emerson
no flags
Helen Emerson
Comment 1 2007-06-13 04:31:31 PDT
Created attachment 14994 [details] Test case
Helen Emerson
Comment 2 2007-06-13 04:32:07 PDT
Created attachment 14995 [details] Safari results
Helen Emerson
Comment 3 2007-06-13 04:32:24 PDT
Created attachment 14996 [details] IE results
Helen Emerson
Comment 4 2007-06-13 04:32:41 PDT
Created attachment 14997 [details] Firefox results
Mark Rowe (bdash)
Comment 5 2007-06-13 14:20:30 PDT
This appears to work correctly for me in the latest nightly build of WebKit.
Note You need to log in before you can comment on or make changes to this bug.