2.1.2 [W3C-INDEXDB] Section 3.1.5 Key Path

V0004: A sequence<DOMString> key path is not supported and will not behave correctly

The specification states:

 ... Key Path
  
     A key path is a [DOMString or sequence<DOMString>/string or list of strings] that 
     defines how to extract a key from a value. A valid key path is one of: 
         ...
         • A non-empty [sequence<DOMString> containing only DOMStrings/list containing 
         only strings] conforming to the above requirements.

IE11 Mode and EdgeHTML Mode (All versions)

A sequence<DOMString> key path is not supported and will not behave correctly.

V0005: An empty array used as a key path throws an error

The specification states:

 ... Key Path
  
     A key path is a [DOMString or sequence<DOMString>/string or list of strings] that 
     defines how to extract a key from a value. A valid key path is one of: 
  
         • An empty DOMString.
  
         • An identifier, which is a [DOMString/string] matching the IdentifierName 
         production from the ECMAScript Language Specification [ECMA-262].
  
         • A [DOMString/string] consisting of two or more identifiers separated by periods 
         ([ASCII character code 46/U+002E FULL STOP]).
  
         • A non-empty [sequence<DOMString> containing only DOMStrings/list containing 
         only strings] conforming to the above requirements.

IE11 Mode and EdgeHTML Mode (All versions)

An InvalidAccessError is thrown when an empty string or an empty array is used for the key path.

V0006: Some types of key paths are considered valid values and do not throw exceptions

The specification states:

 ... Key Path
  
     A key path is a [DOMString or sequence<DOMString>/string or list of strings] that 
     defines how to extract a key from a value. A valid key path is one of: 
  
         • An empty DOMString.
  
         • An identifier, which is a [DOMString/string] matching the IdentifierName 
         production from the ECMAScript Language Specification [ECMA-262].
  
         • A [DOMString/string] consisting of two or more identifiers separated by periods 
         ([ASCII character code 46/U+002E FULL STOP]).
  
         • A non-empty [sequence<DOMString> containing only DOMStrings/list containing 
         only strings] conforming to the above requirements.

IE11 Mode and EdgeHTML Mode (All versions)

The following types of key paths  are considered valid values and do not throw exceptions:

    • strings containing non-valid identifier characters (e.g. (,) comma, (*) asterisks, (") quotation mark, (%) percent sign, (/) solidus, (&) ampersand, (!) exclamation mark, (^) circumflex accent)

    • identifiers starting with a number