Re: [DOM4] NodeList should be deprecated

2012-03-14 Thread Anne van Kesteren
On Wed, 14 Mar 2012 03:44:16 +0100, Cameron McCormack c...@mcc.id.au wrote: Ojan Vafai: We should make static NodeList inherit from Array though so that you can do regular array operations on it. Web IDL has the means to make (all) NodeList objects inherit from Array by annotating them

Re: [DOM4] NodeList should be deprecated

2012-03-14 Thread Cameron McCormack
Anne van Kesteren: Wasn't there a compatibility constrain with doing that? I don't remember -- the only difference it would make is that Object.getPrototypeOf(NodeList.prototype) == Array.prototype.

Re: [DOM4] NodeList should be deprecated

2012-03-14 Thread Anne van Kesteren
On Wed, 14 Mar 2012 09:03:23 +0100, Cameron McCormack c...@mcc.id.au wrote: Anne van Kesteren: Wasn't there a compatibility constrain with doing that? I don't remember -- the only difference it would make is that Object.getPrototypeOf(NodeList.prototype) == Array.prototype. Okay,