<?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>20560</bug_id>
          
          <creation_ts>2013-01-04 01:54:54 +0000</creation_ts>
          <short_desc>misplaced comma</short_desc>
          <delta_ts>2013-01-14 04:30:09 +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>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Marcos Caceres">w3c</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>dhtmlkitchen</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80878</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2013-01-04 01:54:54 +0000</bug_when>
    <thetext>I think this needs to be rewritten:

&quot;Let length be one greater than V’s maximum indexed property index, if V is a platform object that supports indexed properties, or the result of calling [[Get]] on V with property name “length” otherwise.&quot;

to:

&quot;If V is a platform object that supports indexed properties, let length be one greater than V’s maximum indexed property index. Otherwise, let length be the result of calling [[Get]] on V with property name “length”.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81312</commentid>
    <comment_count>1</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-01-14 03:18:58 +0000</bug_when>
    <thetext>I try to avoid variable declarations that are not at the beginning of the step, since &quot;let&quot; implies a scope to me that would be defeated by if the &quot;if&quot; statement around it.  So if anything I would reword it as:

  Let length be a value determined based on the type of V:
    -- a platform object that supports indexed properties
         The value is one greater than V&apos;s maximum indexed property index.
    -- otherwise
         The value is the result of calling [[Get]] on V with property name
         &quot;length&quot;.

But I don&apos;t think it&apos;s particularly unclear at the moment.  There are plenty of other instances of &quot;x, if y, otherwise z&quot; in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81315</commentid>
    <comment_count>2</comment_count>
    <who name="Garrett">dhtmlkitchen</who>
    <bug_when>2013-01-14 04:30:09 +0000</bug_when>
    <thetext>I agree it is awkward and I don&apos;t especially like having &quot;otherwise&quot; used as a disjunctive &quot;else&quot; placed at the end of the sentence.

The direction of what you&apos;ve written in your follow up comment is a lot clearer.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>