[Webkit-unassigned] [Bug 226297] New: Safari's Intl.NumberFormat currencyDisplay doesn't support narrowSymbol
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 26 14:53:37 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226297
Bug ID: 226297
Summary: Safari's Intl.NumberFormat currencyDisplay doesn't
support narrowSymbol
Product: WebKit
Version: Safari 14
Hardware: Mac (Intel)
OS: macOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: magross at tesla.com
Hey team!
This issue has come up in a few places around the web, but I haven't seen a WebKit bug for it yet.
In other browsers, and per the Intl spec, `currencyDisplay` should accept the `narrowSymbol` option.
`Intl.NumberFormat('fr-CA', { style: 'currency', currency: 'CAD', currencyDisplay: 'narrowSymbol' }).format(12345);`
should return "12 345,00 $" but in Safari it throws the following error:
`RangeError: currencyDisplay must be either "code", "symbol", or "name"`
Spec on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters
ECMA 2020 Spec: https://402.ecma-international.org/7.0/#sec-setnumberformatunitoptions
It would be great to get support for this!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210526/f173e421/attachment.htm>
More information about the webkit-unassigned
mailing list