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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 01 Apr 2008 16:48:21 -0500
Message-ID: <47F2ADA5.3040700@mit.edu>
To: Henri Sivonen <hsivonen@iki.fi>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

Henri Sivonen wrote:
> Yes, getChildNodes() is available on an object implementing Element 
> after casting it to NodeList or through reflections.

OK.  So item() would be available on Element after casting it to NodeList in 
those implementations.  I guess you're saying that the cast would not longer be 
unambiguous if there were multiple NodeLists that might make sense?  So 
childElements couldn't be implemented with a |return this;|?

That doesn't seem like such a terrible implementation burden to me, to be honest...

Received on Tuesday, 1 April 2008 21:49:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:10:00 UTC