« Bugzilla Issues Index
#268 — Date toString should specify result for "invalid dates"
- bug_id:
268
- creation_ts:
2012-02-14 10:35:00 -0800
- short_desc:
Date toString should specify result for "invalid dates"
- delta_ts:
2012-02-27 17:02:18 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 5: January 16, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- dependson:
267
- everconfirmed:
true
- reporter:
Allen Wirfs-Brock
- assigned_to:
Allen Wirfs-Brock
- commentid:
643
- comment_count:
0
- who:
Allen Wirfs-Brock
- bug_when:
2012-02-14 10:35:59 -0800
+++ This bug was initially created as a clone of Bug #267 +++
15.9.5.2 says the result of Date.prototype.toString is an implementation-defined string. However, all browser implementations appear to return the string "Invalid Date" for Date objects whose time value is NaN.
This result should be specified.
Open issue: Do implementations every localize this string? Is that acceptable or should the literal text "Invalid Date" be required.
- commentid:
694
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2012-02-27 17:02:18 -0800
fixed in Feb. 2012 draft