[Webkit-unassigned] [Bug 158188] New: [INTL] Implement the caseFirst option for Intl.Collator

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 29 01:33:21 PDT 2016


            Bug ID: 158188
           Summary: [INTL] Implement the caseFirst option for
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sukolsak at gmail.com

The caseFirst option lets users specify whether upper case or lower case should sort first when using Intl.Collator.prototype.compare. For example,

    new Intl.Collator('en', {caseFirst: 'upper'}).compare('a', 'A'); // returns 1
    new Intl.Collator('en', {caseFirst: 'lower'}).compare('a', 'A'); // returns -1

According to the ECMAScript 2015 Internationalization API Specification (ECMA-402 2nd edition), implementations are not required to support caseFirst. But it would be a nice feature to have. Currently, only Chrome seems to supports this.


You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160529/a322d053/attachment.html>

More information about the webkit-unassigned mailing list