W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

Re: [Element Traversal LC] access to element by index

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 02 Apr 2008 05:11:34 -0700
Message-ID: <47F377F6.9030509@sicking.cc>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: Bjoern Hoehrmann <derhoermi@gmx.net>, Boris Zbarsky <bzbarsky@MIT.EDU>, "Web APIs WG (public)" <public-webapi@w3.org>

Daniel Glazman wrote:
> Jonas Sicking wrote:
> 
>> Bjoern Hoehrmann wrote:
>>> We could also standardize the popular .getChildrenByTagName() method,
>>> that would give the similar
>>>
>>>   myFooElement.getChildrenByTagName("*")[3]
>>
>> This seems like an excellent idea. To do in addition to the 
>> ElementTraversal spec.
> 
> I understand from Jonas's answer that he also never heard before
> of that "popular" getChildrenByTagName()...

I hadn't, but I wouldn't expect to either since I'm not looking at 
toolkits that often.

But I was serious about thinking that adding the function seems like a 
good idea. It's currently much too painful to navigate around in the DOM 
so it's something we should try to fix.

/ Jonas
Received on Wednesday, 2 April 2008 12:12:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 2 April 2008 12:12:46 GMT