Re: Array Like Interface

2009-05-18 Thread Allen Wirfs-Brock
(forwarding for Travis since his direct post bounced) From: Travis Leithead Sent: Monday, May 18, 2009 10:28 AM To: bren...@mozilla.com; Allen Wirfs-Brock; c...@mcc.id.au Cc: es-discuss; Garrett Smith; Chris Wilson Subject: Re: Array Like Interface (Adding Cameron, the WebIDL editor

RE: Array Like Interface

2009-05-18 Thread Allen Wirfs-Brock
>-Original Message- >From: Garrett Smith [mailto:dhtmlkitc...@gmail.com] > >Right. The problem is that that implied interface is not fulfilled in >a compatible way IE. IE has list-like host objects which do not work >with Array generics, even though those objects appear to support >[[Get]]

Re: Array Like Interface

2009-05-15 Thread Garrett Smith
On Fri, May 15, 2009 at 10:34 AM, Allen Wirfs-Brock wrote: > The ES specification implicitly defines such an interface.  It is > essentially, the union of the requirements that an object must support if it > is going to work correctly with the specified generic array methods.  Those > implicit

Re: Array Like Interface

2009-05-15 Thread Brendan Eich
On May 15, 2009, at 10:34 AM, Allen Wirfs-Brock wrote: Note that the host object exceptions in the Es5 spec. permits, but do not require that hosts take liberties with the ES specified object semantics. In particular, there is no reason that a browser cannot implement DOM objects as "native

RE: Array Like Interface

2009-05-15 Thread Allen Wirfs-Brock
The ES specification implicitly defines such an interface. It is essentially, the union of the requirements that an object must support if it is going to work correctly with the specified generic array methods. Those implicit requirements are fairly basic, but include the standard specified be

Re: Array Like Interface

2009-05-14 Thread Ian Hickson
On Thu, 14 May 2009, Garrett Smith wrote: > > Implementations could implement this interface for their own interfaces > that may be nonstandard, such as window.frames[1] (if that has not made > it into Ian Hickson's HTML 5 yet). window.frames === window and is defined here: http://www.whatwg