<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16501</bug_id>
          
          <creation_ts>2012-03-23 21:18:52 +0000</creation_ts>
          <short_desc>IndexedDB: IDBObjectStore/IDBIndex.keyPath when key path is an Array?</short_desc>
          <delta_ts>2015-04-09 21:51:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Bell">jsbell</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>timm</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65997</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2012-03-23 21:18:52 +0000</bug_when>
    <thetext>Both object stores and indexes can have key paths which are Arrays, but the WebIDL defines the keyPath attribute for each as a DOMString. What should these yield if the key path is an Array?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65998</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2012-03-23 22:04:13 +0000</bug_when>
    <thetext>The WebIDL for IDBObjectStore&apos;s createIndex method needs an update as well:

 IDBIndex   createIndex (DOMString name, DOMString keyPath, optional IDBIndexParameters optionalParameters);

Should either be &quot;any&quot; or an overload:

 IDBIndex   createIndex (DOMString name, DOMString keyPath, optional IDBIndexParameters optionalParameters);
 IDBIndex   createIndex (DOMString name, DOMString[] keyPath, optional IDBIndexParameters optionalParameters);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66000</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2012-03-23 22:29:18 +0000</bug_when>
    <thetext>Should be fixed now.

I couldn&apos;t get ReSpec to work with the overloads, so I just used &apos;any&apos;. The normative requirements for how to convert the keyPath into a string or array of strings was already in the normative text.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>