[w3c/IndexedDB] primaryKey compared to object store position is by value rather than key (#106)

In the bolded parts here:

> 15. If key is equal to this cursor’s position and primaryKey is **less than** or **equal to** this cursor’s object store position and this cursor’s direction is "next" or "nextunique", throw a DataError.
> 16. If key is equal to this cursor’s position and primaryKey is **greater than** or **equal to** this cursor’s object store position and this cursor’s direction is "prev" or "prevunique", throw a DataError.

...these bolded portions link in code to comparisons based on *key* whereas I think you want them to be comparisons based on value.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/106

Received on Monday, 31 October 2016 18:29:54 UTC