W3C home > Mailing lists > Public > public-html@w3.org > June 2009

Re: DOM tree accessors

From: Simon Pieters <simonp@opera.com>
Date: Tue, 16 Jun 2009 11:57:34 +0200
To: "Joe D Williams" <joedwil@earthlink.net>, "HTML WG" <public-html@w3.org>
Message-ID: <op.uvl298ahidj3kv@zcorpandell.linkoping.osa>
On Tue, 16 Jun 2009 09:09:30 +0200, Joe D Williams <joedwil@earthlink.net>  

> 3.2.4 DOM tree accessors
> ...
> document.embeds
> document.plugins
> "The embeds attribute must return an HTMLCollection rooted at the  
> Document node, whose filter matches only embed elements."
> "The plugins attribute must return the same object as that returned by  
> the embeds attribute."
> This list of accessors should be expanded to include other similar  
> reasonable named collections.
> Collections for  <object>, <iframe>, <video>, <audio>, and other active  
> items are of similar interest and utility.

document.embeds and friends are DOM0 legacy. You can use  
getElementsByTagName or querySelectorAll for other elements.

> How about giving a collection in terms of browsing context
> document.contexts
> to give me a list of source and decendent context names?

The window object is that collection.

Simon Pieters
Opera Software
Received on Tuesday, 16 June 2009 09:58:18 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:49 UTC