Closed Bug 1445988 Opened 6 years ago Closed 5 years ago

Note for IE and Edge including control characters in Intl.DateTimeFormat.format

Categories

(Developer Documentation Graveyard :: JavaScript, enhancement, P2)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla.mozilla, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: New Documentation
     Gecko Version: unspecified
 Technical Contact: 

:: Details

In attempting to resolve an issue in Edge with Intl.DateTimeFormat.format(), I discovered that it was including invisible control characters in the return string.

Searching the issue, I came across this Stack Overflow thread from 2014 (so, involving IE and not Edge) that deals with the same issue: https://stackoverflow.com/questions/25574963/ies-tolocalestring-has-strange-characters-in-results

The accepted answer is that this behaviour is not to be unexpected (and I infer not actually a bug).

Could the DateTimeFormat and/or DateTimeFormat.format pages be amended to include a caution about this potential pitfall?
Priority: P5 → P2

review? Chris?

Reads really well; nice work! I gave it a couple of tweaks, but nothing major.

Flags: needinfo?(cmills)

Thank you!

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.