- From: Julian Dominguez-Schatz <notifications@github.com>
- Date: Sat, 04 Oct 2025 10:25:07 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/IndexedDB/issues/475@github.com>
jfdoming created an issue (w3c/IndexedDB#475) The [IDL definition](https://www.w3.org/TR/IndexedDB/#idl-index) for `getAll` and `getAllKeys` lists `queryOrOptions` as `optional`; however, the algorithm [5.12 Creating a request to retrieve multiple items](https://www.w3.org/TR/IndexedDB/#create-request-to-retrieve-multiple-items) doesn't handle the case where `queryOrOptions` is not defined (and the [description](https://www.w3.org/TR/IndexedDB/#dom-idbindex-getallkeys) of the method doesn't either). There _is_ the following note at the bottom of the algorithm: > NOTE: The _range_ can be a [key](https://www.w3.org/TR/IndexedDB/#key) or [key range](https://www.w3.org/TR/IndexedDB/#key-range) (an [IDBKeyRange](https://www.w3.org/TR/IndexedDB/#idbkeyrange)) identifying the [record](https://www.w3.org/TR/IndexedDB/#object-store-record) items to be retrieved. If null or not given, an [unbounded key range](https://www.w3.org/TR/IndexedDB/#unbounded-key-range) is used. If _count_ is specified and there are more than _count_ records in range, only the first _count_ will be retrieved. Based on the IDL as well as [MDN](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys#query) and [these](https://wpt.live/IndexedDB/idbindex_getAllKeys.any.html) Web Platform Tests, I think the note is meant to apply to `queryOrOptions` (it is not clear to me what `range` refers to here). Is that accurate? And if so, would it be worth updating the 5.12 algorithm to explicitly handle this case as a step? -- Reply to this email directly or view it on GitHub: https://github.com/w3c/IndexedDB/issues/475 You are receiving this because you are subscribed to this thread. Message ID: <w3c/IndexedDB/issues/475@github.com>
Received on Saturday, 4 October 2025 17:25:11 UTC