<?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>11567</bug_id>
          
          <creation_ts>2010-12-17 11:19:23 +0000</creation_ts>
          <short_desc>IndexedDB should utilize the new WebIDL static feature</short_desc>
          <delta_ts>2011-03-07 19:31:13 +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>jonas</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>43448</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2010-12-17 11:19:23 +0000</bug_when>
    <thetext>Per Jonas:

To construct a key range a set of constructors are available. In
languages with interface objects [WEBIDL], these constructors are
available on the IDBKeyRange interface object. In other languages
these constructors are available through language specific means, for
example as static functions&quot;

But I see that I forgot to say that the IDBKeyRangeConstructors
interface implements these constructors.

However WebIDL nowadays have support for &quot;static&quot; so there is no
longer a need for a separate interface. We should just do

interface IDBKeyRange {
   readonly attribute any     lower;
   readonly attribute any     upper;
   readonly attribute boolean lowerOpen;
   readonly attribute boolean upperOpen;

   static IDBKeyRange only (in any value);
   static IDBKeyRange lowerBound (in any bound, in optional boolean open);
   static IDBKeyRange upperBound (in any bound, in optional boolean open);
   static IDBKeyRange bound (in any lower, in any upper,
                                in optional boolean lowerOpen,
                                in optional boolean upperOpen);
};</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>