Re: DOM tree accessors

On Tue, 16 Jun 2009, Joe D Williams wrote:
>
> 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.

These collections are a holdover from a world without 
getElementsByTagName(). Today, I would recommend just using those.


On Tue, 16 Jun 2009, Joe D Williams wrote:
> 
> OK, let's move a selected DOM0 legacy subset like .embeds and .plugins 
> (along with <embed>) to 12:)

Well, they still work. No need to tell people off for using them.


-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 13 July 2009 07:56:55 UTC