<?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>11269</bug_id>
          
          <creation_ts>2010-11-09 00:38:52 +0000</creation_ts>
          <short_desc>Evaluating keyPaths needs to be better specified</short_desc>
          <delta_ts>2015-04-09 21:51:05 +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="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>jorlow</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>42292</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-11-09 00:38:52 +0000</bug_when>
    <thetext>This bug is very similar to bug 9832, however since that bug is discussing a lot of related issues, I wanted to file a separate one to make sure this isn&apos;t forgotten.

Currently the syntax for parsing a keyPath isn&apos;t explicitly defined. It is clear that for keypath/object

&quot;foo.bar.baz&quot;
{ foo: { bar: { baz: 4 } } }

the result is 4. However does keypath/object

&quot;foo[1].bar&quot;
{ foo: [ false, { bar: 4 }, true ] }

evaluate to 4? What about

&quot;foo[x].bar&quot;
{ foo: [ { bar: 4 } ], x: 0 }

or

&quot;&quot;
4

Do either of those evaluate to 4? The last example could be useful when out-of-line keys are used, but still wanting to be able to search on the stored value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42297</commentid>
    <comment_count>1</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2010-11-09 01:03:42 +0000</bug_when>
    <thetext>A couple of more keypath/object edge cases that needs to be defined:

&quot;foo[1]&quot;
{ foo: [12, 13] }

&quot;foo[5]&quot;
{ foo: [12, 13] }

&quot;foo.1&quot;
{ foo: [12, 13] }  (i.e. is this a syntax error or not?)

&quot;[1]&quot;
[12, 13]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47080</commentid>
    <comment_count>2</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-03-31 18:27:02 +0000</bug_when>
    <thetext>We decided on this in some thread:

&lt;identifier&gt; [&quot;.&quot; &lt;identifier&gt;]*

Where identifier is basically a JavaScript identifier (which I believe is something like this:

[a-zA-Z_][a-zA-Z0-9_]*

But I&apos;m hoping we can avoid speccing this later part ourselves.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47082</commentid>
    <comment_count>3</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-03-31 18:27:21 +0000</bug_when>
    <thetext>*** Bug 9832 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>