-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with "Intl.NumberFormat() constructor": currencyDisplay 'narrowSymbol' throw an error on Safari #8985
Comments
Looks like the support has landed on trunk. and available in Safari Technology Preview (114 and above). So I guess it'll be supported in the coming version of Safari (14.1). |
Perhaps someone could transfer this issue to mdn/browser-compat-data ? |
Good idea. Transferring. |
Thanks for reporting this! To fix this is a bit complex. To address the specific problem of
More comprehensively—perhaps as follow up issues to this one—we ought to have a complete set of option subfeatures for I'd welcome one or more PRs working on this issue! |
…le + fix Safari narrowSymbol issue for now mdn/browser-compat-data#8985
…le + fix Safari narrowSymbol issue for now mdn/browser-compat-data#8985
Looks like this was resolved by #10129! |
@vinyldarkscratch Could you elaborate a bit? I listed a number of fixes that would need to be made, but I'm not sure how the 14.1 data applies. I'm not saying it's not resolved, but it's different than what I've suggested and I'd like to understand better how that happened. |
Sorry it took so long to respond. This was actually resolved by #9371, which also closed #9319, a duplicate issue describing the same situation. #9371 added the suggested subfeature and populated its data, adding a note describing the lack of |
MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat
What information was incorrect, unhelpful, or incomplete?
We recently added the option
currencyDisplay: 'narrowSymbol'
in our code and as soon as it went live, we had a big wave of errors coming in from Safari users.Basically, our prices got removed all over our site because Safari was throwing the following error:
See also: https://stackoverflow.com/a/64473216/1895428
Specific section or headline?
Browser compatibility
What did you expect to see?
I would expect to see under "Browser compatibility" that Safari doesn't support
currencyDisplay: 'narrowSymbol'
Did you test this? If so, how?
I tested it on Safari. It seems to also happen on any browser running on iOS.
MDN Content page report details
en-us/web/javascript/reference/global_objects/intl/numberformat/numberformat
The text was updated successfully, but these errors were encountered: