This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 14488 - [IDBObjectStore|IDBIndex].count description should specify optional argument behavior a little better
Summary: [IDBObjectStore|IDBIndex].count description should specify optional argument ...
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 23:06 UTC by Ben Turner
Modified: 2011-11-02 15:09 UTC (History)
3 users (show)

See Also:


Attachments

Description Ben Turner 2011-10-17 23:06:54 UTC
Right now the first sentence of the description says to throw an exception if the argument is not a valid key or KeyRange ignoring the fact that the argument is optional. We may also want to accept null to mean 'everything'.
Comment 1 Eliot Graff 2011-11-02 01:23:22 UTC
Making change
Comment 2 Eliot Graff 2011-11-02 15:09:24 UTC
I changed the wording just a little bit to overtly state that the param is optional:

If the optional key parameter is not a valid key or a key range, this method throws a DOMException of type DataError.

The change is published in the 1 November Editor's Draft.
Thanks for the feedback.