W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: http://www.w3.org/TR/IndexedDB/#key-construct ordering confusion

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 17 Aug 2011 09:57:12 -0700
Message-ID: <CA+c2ei-i3OhTGb9JSkxPQc1UC-X_Giho=szVXEnK9gX0FMPcjA@mail.gmail.com>
To: Jim Jewett <jimjjewett@gmail.com>
Cc: public-webapps@w3.org
On Wed, Aug 17, 2011 at 9:53 AM, Jim Jewett <jimjjewett@gmail.com> wrote:
> At http://www.w3.org/TR/IndexedDB/#key-construct within the text, it
> says that Arrays are the largest-valued keys:  "For purposes of
> comparison, all Arrays are greater than all DOMString, Date and float
> values; all DOMString values are greater than all Date and float
> values; and all Date values are greater than all float values."
> But within the note, it says "As a result of the above rules, an empty
> Array is the lowest possible key, while positive infinity is the
> highest possible key."
> According to the text, I would expect negative infinity to be the
> lowest possible key, and the highest possible key to be undefined
> (because an array of any candidate highest key followed by another
> valid key would be even higher)

Yes. You are correct.

/ Jonas
Received on Wednesday, 17 August 2011 16:58:19 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:34 UTC