Page MenuHomePhabricator

[All Controls] Missing comma on donation amounts in older versions of Safari
Closed, DeclinedPublicBUG REPORT

Description

Steps to Reproduce:

  1. Open https://en.m.wikipedia.org/wiki/Wikipedia?banner=B1920_0315_mlWW_m_p2_sm_template&country=JP in Safari 9.0 or earlier
  2. Observe missing commas in the donation amounts

Desktop example:

image.png (372×421 px, 35 KB)

Mobile example:

image.png (676×1 px, 99 KB)

Actual Results:
Currently the comma is missing on older versions of Safari 9.0 and earlier (verified on the iPad Mini the foundation lent me).

Expected Results:
We would expect the comma to appear in older versions of Safari

Event Timeline

jbolorinos-ctr created this task.
jbolorinos-ctr updated the task description. (Show Details)
jbolorinos-ctr renamed this task from [M Sm] Missing comma on donation amounts in older versions of Safari to [All Controls] Missing comma on donation amounts in older versions of Safari.Jun 25 2020, 2:13 AM
jbolorinos-ctr updated the task description. (Show Details)
Pcoombe lowered the priority of this task from Medium to Lowest.Jun 25 2020, 10:21 AM
Pcoombe subscribed.

This is because we normally use the built-in Intl.NumberFormat method in frb.formatCurrency, but it isn't supported before Safari 10 (https://caniuse.com/#feat=mdn-javascript_builtins_intl_numberformat_format), so we just fall back to constructing the number manually.

We could potentially improve that to include thousands separators, but given the built-in method works for the vast majority of users and thousands separators are not essential, triaging as Lowest.

Thanks Peter, closing this as declined