<?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>16513</bug_id>
          
          <creation_ts>2012-03-25 14:02:59 +0000</creation_ts>
          <short_desc>Use WebIDL enum for IDBDatabase.transaction&apos;s mode argument</short_desc>
          <delta_ts>2013-02-28 22:45:15 +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="Ms2ger">Ms2ger</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>jonas</cc>
    
    <cc>jsbell</cc>
    
    <cc>mike</cc>
    
    <cc>odinho</cc>
    
    <cc>public-webapps</cc>
    
    <cc>robin</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66024</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-03-25 14:02:59 +0000</bug_when>
    <thetext>enum TransactionMode { &quot;readonly&quot;, &quot;readwrite&quot; };
interface IDBDatabase : EventTarget {
  IDBTransaction transaction (any storeNames, optional TransactionMode mode);
};

would do it. This could also have the benefit that you can remove &quot;The value for the mode parameter is invalid.&quot;, which doesn&apos;t actually explain when the value is invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67264</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2012-05-02 21:35:56 +0000</bug_when>
    <thetext>I don&apos;t think we can do this until ReSpec supports it. The spec as it&apos;s written now has the correct normative requirements so this is essentially a editorial issue.

Robin, are there any plans to add support for enums to ReSpec?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83843</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2013-02-28 22:45:15 +0000</bug_when>
    <thetext>Spec updated: https://dvcs.w3.org/hg/IndexedDB/rev/f3d40c6295ac

* TransactionMode enum declared using WebIDL, definitions of &quot;readonly&quot;, &quot;readwrite&quot;, &quot;versionchange&quot; incorporated

* IDBDatabase.transaction() and IDBDatabaseSync.transaction() updated in WebIDL to reference TransactionMode enum and prose to drop explicit references to throwing TypeError.

* IDBTransaction.mode and IDBTransactionSync.mode updated to reference TransactionMode enum</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>