W3C home > Mailing lists > Public > www-html@w3.org > December 2004

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:01 GMT