<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>226297</bug_id>
          
          <creation_ts>2021-05-26 14:53:37 -0700</creation_ts>
          <short_desc>Safari&apos;s Intl.NumberFormat currencyDisplay doesn&apos;t support narrowSymbol</short_desc>
          <delta_ts>2021-06-03 11:09:06 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Safari 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>209774</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Gross">magross</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>fpizlo</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1764067</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Gross">magross</who>
    <bug_when>2021-05-26 14:53:37 -0700</bug_when>
    <thetext>Hey team!

This issue has come up in a few places around the web, but I haven&apos;t seen a WebKit bug for it yet.

In other browsers, and per the Intl spec, `currencyDisplay` should accept the `narrowSymbol` option.

`Intl.NumberFormat(&apos;fr-CA&apos;, { style: &apos;currency&apos;, currency: &apos;CAD&apos;, currencyDisplay: &apos;narrowSymbol&apos; }).format(12345);` 

should return &quot;12 345,00 $&quot; but in Safari it throws the following error:

`RangeError: currencyDisplay must be either &quot;code&quot;, &quot;symbol&quot;, or &quot;name&quot;`

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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1766174</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-02 14:54:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/78784118&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1766426</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-06-03 10:09:09 -0700</bug_when>
    <thetext>This is implemented in Safari 14.1 on Big Sur / iOS 14.5 Safari.

*** This bug has been marked as a duplicate of bug 209774 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1766453</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Gross">magross</who>
    <bug_when>2021-06-03 11:09:06 -0700</bug_when>
    <thetext>TY!

I just updated to 14.1 &amp; saw it start working :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>