<?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>12654</bug_id>
          
          <creation_ts>2011-05-13 10:19:50 +0000</creation_ts>
          <short_desc>createIndex&apos;s options should include whether a field is optional/required</short_desc>
          <delta_ts>2011-07-11 19:49:23 +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>PC</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="Jeremy Orlow">jorlow</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48503</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-05-13 10:19:50 +0000</bug_when>
    <thetext>createIndex&apos;s options should include whether a field is optional/required.  I know Jonas and I talked about this a bunch and I thought we had fixed it (or at least filed a bug for it) but I can&apos;t find any trace.  Right now Chrome defaults to required and Firefox defaults to optional.  IIRC, after talking about it a bunch, Jonas convinced me it should default to optional to make things less schema-full by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50928</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-07-11 19:49:23 +0000</bug_when>
    <thetext>Rewrote 3.1.12, Options Objects, to define the dictionary objects IDBDatabaseOptionalParameters and IDBIndexOptionalParameters (removing the Note, the Issue, and the two sentences about exceptions).
Changed types from the optionalParameters type to the new types in IDBObjectStore.createObjectStore (IDBDatabase and IDBDatabaseSync) and in IDBIndex createIndex (IDBObjectStore and IDBObjectStoreSync).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>