This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28067 - DOMStringList has been removed from DOM
Summary: DOMStringList has been removed from DOM
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: public-webapps-bugzilla
: 16103 (view as bug list)
Depends on:
Reported: 2015-02-21 19:14 UTC by Philip Jägenstedt
Modified: 2015-08-10 19:57 UTC (History)
5 users (show)

See Also:


Comment 1 Joshua Bell 2015-02-23 16:52:41 UTC
We unfortunately appear to have a non-trivial number of uses of the "contains" operation on DOMStringList in Chrome.

... shows around 0.01% of page loads (!). It's high enough that I don'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't think Firefox ever shipped it?
Comment 2 Philip Jägenstedt 2015-02-24 15:36:24 UTC
If Array.prototype.contains existed, that would solve the problem, I guess?
Comment 3 Mike Taylor 2015-02-24 15:41:30 UTC
Array.prototype.contains at one point existed in ES6, but was renamed to Array.prototype.includes [1] because it wasn't web-compatible [2].

Comment 4 Philip Jägenstedt 2015-02-25 02:41:22 UTC
Thanks Mike. I can't find Array.prototype.includes in the ES6 draft <>, 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.
Comment 5 Joshua Bell 2015-02-25 03:13:38 UTC
(In reply to Philip Jägenstedt from comment #4)
> Thanks Mike. I can't find Array.prototype.includes in the ES6 draft

It didn't make it into ES6. It's an ES7 proposal:
Comment 6 Joshua Bell 2015-05-19 22:19:10 UTC
*** Bug 16103 has been marked as a duplicate of this bug. ***
Comment 7 Joshua Bell 2015-08-10 19:57:44 UTC
Moved to