[WebIDL] Remove ArrayClass?

Hi,

WebIDL currently specifies ArrayClass[1] as:  “it indicates that the internal [[Prototype]] property of its interface prototype object will be the Array prototype object rather than the Object prototype object”.

So far ArrayClass was just proposed for the legacy interface DOMRectList recently. In Gecko, ArrayClass is used for MediaLink and two internal, not yet specified interfaces. It seems that most people strongly prefer sequences over ArrayClass. Both, MediaList and DOMRectList (ClientRectList previously) are just implemented with the Array prototype in Gecko (and Servo?). No other browser engine seems to support something like ArrayClass.

I would suggest that ArrayClass gets removed and keep the legacy interfaces as implemented in most browsers without Array prototype.

Greetings,
Dirk

[1] http://heycam.github.io/webidl/#ArrayClass

Received on Friday, 18 July 2014 21:22:15 UTC