<?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>28067</bug_id>
          
          <creation_ts>2015-02-21 19:14:01 +0000</creation_ts>
          <short_desc>DOMStringList has been removed from DOM</short_desc>
          <delta_ts>2015-08-10 19:57:44 +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>MOVED</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="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>annevk</cc>
    
    <cc>jsbell</cc>
    
    <cc>mike</cc>
    
    <cc>miketaylr</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>118063</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-02-21 19:14:01 +0000</bug_when>
    <thetext>Removed in:
https://github.com/whatwg/dom/commit/8f73159d4a9e2e1a002f4eb1dfd4df3f645e9575

Used in:
http://w3c.github.io/IndexedDB/#widl-IDBDatabase-objectStoreNames
http://w3c.github.io/IndexedDB/#widl-IDBObjectStore-indexNames</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118093</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-02-23 16:52:41 +0000</bug_when>
    <thetext>We unfortunately appear to have a non-trivial number of uses of the &quot;contains&quot; operation on DOMStringList in Chrome.

https://www.chromestatus.com/metrics/feature/popularity#DOMStringListContains

... shows around 0.01% of page loads (!). It&apos;s high enough that I don&apos;t think we can simply remove it without going through a deprecation phase and evangelizing. Given the nature of its use w/ IndexedDB (schema introspection) a usage even that high seems likely to be due to usage in a library.

On the other hand, I don&apos;t think Firefox ever shipped it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118116</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-02-24 15:36:24 +0000</bug_when>
    <thetext>If Array.prototype.contains existed, that would solve the problem, I guess?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118117</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Taylor">miketaylr</who>
    <bug_when>2015-02-24 15:41:30 +0000</bug_when>
    <thetext>Array.prototype.contains at one point existed in ES6, but was renamed to Array.prototype.includes [1] because it wasn&apos;t web-compatible [2].

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1070767#c1
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=1075059</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118146</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-02-25 02:41:22 +0000</bug_when>
    <thetext>Thanks Mike. I can&apos;t find Array.prototype.includes in the ES6 draft &lt;https://people.mozilla.org/~jorendorff/es6-draft.html&gt;, just String.prototype.includes. I see that Firefox Nightly has it though.

This is all very unfortunate, getting rid of DOMStringList is going to be harder now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118148</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-02-25 03:13:38 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #4)
&gt; Thanks Mike. I can&apos;t find Array.prototype.includes in the ES6 draft

It didn&apos;t make it into ES6. It&apos;s an ES7 proposal:

https://github.com/tc39/Array.prototype.includes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120376</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-05-19 22:19:10 +0000</bug_when>
    <thetext>*** Bug 16103 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122540</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2015-08-10 19:57:44 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/IndexedDB/issues/28</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>