W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: ElementTraversal support in Firefox 3.1

From: Sam Weinig <weinig@apple.com>
Date: Wed, 20 Aug 2008 05:44:08 -0700
Cc: Webapps WG <public-webapps@w3.org>
Message-Id: <E05DDD0F-A11C-487D-A779-7E29C0232BC5@apple.com>
To: Jonas Sicking <jonas@sicking.cc>


On Aug 19, 2008, at 3:08 PM, Jonas Sicking wrote:

>
> Hi all,
>
> I just landed support for ElementTraversal in firefox. This will be  
> available in tomorrow nightlies, as well as the upcoming Firefox 3.1  
> Alpha 2 release that should be out soon.
>
> On top of this we also implement a 'children' property which is an  
> NodeList of all child elements to allow children to be reached by  
> index, such as
>
> res = myElement.children[5];
>
> The reason we chose the name 'children' for this property is that  
> this is already available in IE, Safari and Opera (which makes me  
> wonder about the arguments about this being too complex to implement).

In WebKit, we have the 'children' property implemented only on  
HTMLElements and instead of returning a NodeList, it returns a  
HTMLCollection (which differs only slightly from NodeList's interface).

-Sam
Received on Wednesday, 20 August 2008 12:44:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:27 GMT