W3C home > Mailing lists > Public > public-html@w3.org > January 2010

Re: <iframe doc="">

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 18 Jan 2010 19:11:33 -0500
Message-ID: <4B54F8B5.1000008@mit.edu>
To: Joe D Williams <joedwil@earthlink.net>
CC: public-html@w3.org
On 1/18/10 6:48 PM, Joe D Williams wrote:
> If you use <object> or <embed> I think you will
> find events do not work the same as for <iframe>.

I assure you that in Gecko they do.

> For example if <iframe> we try to limit access so that the 'nested' DOM acts like it is
> not accessible from the host DOM.

I have no idea what you're talking about here.  In Gecko, both <object>s 
and <iframe>s expose a contentDocument property which returns the 
document inside.

<iframe> and <frame> also have an extension property called 
contentWindow which <object> does not, but it's trivial to get to the 
window from the document.

The only difference I'm aware of between the two is in handling 
javascript: URIs, and that's due to <object> not knowing whether it's a 
subdocument that early in the process.

Received on Tuesday, 19 January 2010 00:12:08 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:07 UTC