[whatwg] HTMLCollections: embeds, plugins, applets

I note that document.embeds, document.plugins and document.applets are all  
supported HTMLCollections in browsers. They might need to be specced.

Test cases/demos:

    http://simon.html5.org/test/html/dom/htmlcollections/


In IE7, an <embed> is not part of the embeds or plugins collections if it  
is inside an <object>.

In Opera, document.plugins matches both object and embed elements.

In WebKit and IE7, document.applets matches both object and applet  
elements.


Suggested spec text:

    The embeds attribute must return an HTMLCollection rooted at the
    Document node, whose filter matches only embed elements.

    The plugins attribute must return an HTMLCollection rooted at the
    Document node, whose filter matches only embed elements.

    The applets attribute must return an HTMLCollection rooted at the
    Document node, whose filter matches only applet elements.


This happens to be what Firefox does.

-- 
Simon Pieters

Received on Thursday, 31 May 2007 20:03:50 UTC