[Webkit-unassigned] [Bug 62288] IndexedDB createObjectStore should throw if key path contains a space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 21 22:23:38 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62288





--- Comment #27 from Kentaro Hara <haraken at google.com>  2011-08-21 22:23:38 PST ---
I found that the spec about exceptions is now revised and defined.

- createObjectStore("name", {keyPath: undefined}): Creates an object store with no key-path.
- createObjectStore("name", {keyPath: null}): Creates an object store with no key-path.
- createObjectStore("name", {keyPath: ''}): Creates an object store with no key-path.

http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBDatabaseSync-createObjectStore-IDBObjectStoreSync-DOMString-name-Object-IDBDatabaseOptionalParameters says "If the attribute is null, undefined, the empty string, or not present, no key path is specified and thus keys are out-of-line."

- createIndex("name", undefined): Creates an index with a key-path "undefined"
- createIndex("name", null): Creates an index with a key-path "null"

This case hits the step 3 of this spec: http://www.w3.org/TR/WebIDL/#es-DOMString In other words, undefined should be converted to "undefined" and null should be converted to "null", and then those strings are used for a key-path.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list