Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: "iframe" and dom problem

From: Johannes Koch <koch@w3development.de>
Date: Fri, 17 Dec 2004 10:07:58 +0100
Message-ID: <41C2A1EE.3060207@w3development.de>
To: www-html@w3.org, www-dom@w3.org

June Lee wrote:

Looking into the DOM2 HTML Specification, I read that ...

> 2) Using object insted of iframe has DOM problems in browsers.
> self.document.getElementById("myEmbed").document.lastModified
> : self.document.getElementById("myEmbed").document means
>   document object of "myEmbed" element. it is document object.
> (DOM Level 2, works in IE. not in Mozilla).

... this (document) is not DOM Level 2, neither is ...

> <iframe id="myEmbed" src="embed.html"></iframe>
>  
> I can use below DOM :
> self.document.getElementById("myEmbed").contentWindow.location.href
> : self.document.getElementById("myEmbed").contentWindow is
>   iframe window object. 
> (DOM Level 2, works in IE and Mozilla).

... this (contentWindow) nor ...

> self.document.getElementById("myEmbed").contentWindow.document.lastModified
> : self.document.getElementById("myEmbed").contentWindow.document is
>   document object of iframe window object.
> (DOM Level 2, works in IE and Mozilla).

... this (contentWindow again).

-- 
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)
Received on Friday, 17 December 2004 09:08:58 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.