W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] .tags on HTMLCollections

From: Maciej Stachowiak <mjs@apple.com>
Date: Tue, 14 Jul 2009 01:03:01 -0700
Message-ID: <C79B9247-229F-4F3F-A791-D5656FEF7478@apple.com>

On Jul 13, 2009, at 11:55 PM, Boris Zbarsky wrote:

> Ian just pointed out to me that his current draft requires  
> HTMLCollections to implement a tags() method (which seems to do a  
> filter by tagName on the contents of the collection).
>
> As far as I can tell, IE, Webkit, and Opera implement this; Gecko  
> does not.  I was wondering whether any of the Webkit or Opera folks  
> could comment on _why_ they implement this?  I haven't seen any uses  
> of this in the wild (outside document.all.tags, but document.all  
> doesn't behave like a normal HTMLCollection in all sorts of other  
> ways either).
>
> I'd rather be specifying (and implementing) a smaller DOM API, if  
> that's all that's needed for actual web compat....

Support for HTMLCollection.tags() in WebKit predates the fork from  
KHTML. So we don't know why it was originally added.

Regards,
Maciej
Received on Tuesday, 14 July 2009 01:03:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC