Re: Array-with-item in WebIDL

The question at hand is:

Can we replace various Array-like objects returned by the DOM with
real JS-Arrays or subclasses of JS-Arrays that contain "contains"
and/or "item" functions.

I don't see that this subthread is getting us any closer to answering
that question.

/ Jonas


On Tue, Jun 16, 2015 at 7:46 PM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
> On 6/16/15, Jonas Sicking <jonas@sicking.cc> wrote:
>> FWIW, very few of the DOM APIs return array-like objects with a
>> "contains" function.
>
> Lets name some.
>
>  HTMLFormElement objects,
>  HTMLSelectElement
>  DOMTokenList
>  DOMStringList
>
> Any HTMLCollection that has a descendent OBJECT whose id is "contains"
> (nonstandard Firefox extension).
>
> What else?
> --
> Garrett
> @xkit
> ChordCycles.wordpress.com
> garretts.github.io
> personx.tumblr.com

Received on Wednesday, 17 June 2015 07:35:48 UTC