<?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>20570</bug_id>
          
          <creation_ts>2013-01-05 11:50:23 +0000</creation_ts>
          <short_desc>Remove the indexed deleter. It is the only one in the platform and this type of API is not preferred.</short_desc>
          <delta_ts>2013-09-12 20:36:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#datatransferitemlist</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>cam</cc>
    
    <cc>chris</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80930</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-05 11:50:23 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#datatransferitemlist
Complete: http://www.whatwg.org/c#datatransferitemlist

Comment:
Remove the indexed deleter. It is the only one in the platform and this type
of API is not preferred.

Posted from: 82.161.179.17 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.5 Safari/537.22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84046</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-06 22:36:58 +0000</bug_when>
    <thetext>It is by far not the only one, and personally I think it _is_ preferred. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84074</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-03-07 11:06:34 +0000</bug_when>
    <thetext>It is the only one. Point me to another IDL block.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86102</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-12 23:06:22 +0000</bug_when>
    <thetext>DOMStringMap, DOMElementMap, and Storage, at least, all have deleters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86104</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-12 23:10:59 +0000</bug_when>
    <thetext>(Not to mention Object and Array, of course.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86124</commentid>
    <comment_count>5</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-04-13 08:14:39 +0000</bug_when>
    <thetext>WebIDL distinguishes between &quot;indexed property deleters&quot; and &quot;named property deleters&quot;. This is the only example of the former.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86651</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-24 00:38:17 +0000</bug_when>
    <thetext>Even if we only look at deleters that take numeric inputs, Array has one.

But I don&apos;t understand why we would. What&apos;s the relevant difference? Just because these are indexed by number rather than string, they shouldn&apos;t be deletable? A deleter is a deleter, why care what the type of the argument is, other than for internal WebIDL reasons.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86654</commentid>
    <comment_count>7</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2013-04-24 01:07:11 +0000</bug_when>
    <thetext>Arrays can be sparse.  Other APIs don&apos;t allow sparse indexed properties.  I don&apos;t think we want to make our APIs have sparse indexed properties, and I also don&apos;t think we want to have the properties &quot;shift over&quot; to fill in the gap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86916</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-27 00:00:59 +0000</bug_when>
    <thetext>I guess the shifting over behaviour is unusual. Fair enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86917</commentid>
    <comment_count>9</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-04-27 00:01:58 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7857.
Check-in comment: Change indexed deleter to a method.
http://html5.org/tools/web-apps-tracker?from=7856&amp;to=7857</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91899</commentid>
    <comment_count>10</comment_count>
    <who name="Chris Dumez">chris</who>
    <bug_when>2013-08-12 14:01:30 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Checked in as WHATWG revision r7857.
&gt; Check-in comment: Change indexed deleter to a method.
&gt; http://html5.org/tools/web-apps-tracker?from=7856&amp;to=7857

It seems the non-normative green box was not updated. It still mentions:
- delete items[index]
But does not mention:
- remove(index)

Link:
http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#datatransferitemlist</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93314</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-09-12 20:36:54 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8181.
Check-in comment: Update DataTransferItemList domintro to match recent changes to deleter
http://html5.org/tools/web-apps-tracker?from=8180&amp;to=8181</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>