document.embeds

T

Thomas 'PointedEars' Lahn

Art said:
Is document.embeds still a part of the current/latest javascript DOM ?

There is no such thing like a "javascript DOM". There is the language
JavaScript and the DOM of the user agent. The only thing both have to
do with one another is that DOM of the UA can be accessed with client-side
JavaScript (or another ECMAScript implementation, like JScript in IE).

"embeds" is a property of the `document' object in the Netscape 4 DOM
(Netscape Navigator 4.x), the IE DOM (IE browser component, versions
4 and above) and the Gecko DOM (Netscape Gecko-based user agents, for
example Mozilla, Firefox, Netscape 6+, Camino).

The HTMLDocument interface of DOM Level 2 provides no such attribute,
it defines the "applets" attribute (to be bind to ECMAScript applications
as "applets" property) instead (which is intended to cover access to both
"applet" and "object" elements (HTMLAppletElement and HTMLObjectElement
objects), since there is no "embed" element in Valid (X)HTML).

Whether the DOM of a UA implements either one or not is a completely
different issue and nothing that can be relied upon. What works in
one UA is not required to work in another, so you should use feature
testing prior to access.

<http://pointedears.de/scripts/test/whatami>


HTH

PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top