https://www.w3.org/Bugs/Public/show_bug.cgi?id=15987
Summary: [IndexedDB] Invalid dates should not be valid keys
Product: WebAppsWG
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Indexed Database API
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected], [email protected]
Section 3.1.3 Keys:
"... A value is said to be a valid key if it is one of the following types:
Array JavaScript objects [ECMA-262], DOMString [WEBIDL], Date [ECMA-262] or
float [WEBIDL]. ... Additionally, if the value is of type float, it is only a
valid key if it is not NaN. Conforming user agents must support all valid keys
as keys."
Just as NaN floats are not valid keys, invalid dates - i.e. dates where the
internal double (revealed by date.valueOf()) is NaN - should not be considered
valid keys as these cannot be "compared to other Date values chronologically"
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.