W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ACTION-61: text for embedding part of the Window object

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Sun, 05 Mar 2006 12:57:05 -0600
Message-ID: <440B3481.7000307@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

Anne van Kesteren wrote:

 > The element that refers to another document that is then embedded is

"An element"?  Or is there only one in the universe?  This applies to a lot of 
the articles in this first paragraph.

> <code>window.frameElement</code> from a child document MUST reflect the 
> referencing element.

Generally speaking subject to security restrictions, right?  As in, the getter 
should be allowed to throw a security error instead, imo.

> <code>window.parent</code> MUST reflect the parent 
> document Window object.

Even if script has modified it?  Note that script can change the "parent" 
propert of a window.

> <code>window.top</code> MUST reflect the root document Window object.

Same here.

> If there is no referencing element, parent 
> document or root document the attributes MUST be <code>null</code> 
> respectively.

Under what circumstances would there be no root document?  And again, how does 
that interact with scripts setting Window.top and Window.parent?

> <code>window.name</code> from a child document MUST initially reflect 
> the name assigned by the referencing element.

What does "from a child document" mean here?  Also, what does "initially" mean?

> If there is no referencing element this attribute 
> MUST be the empty string.

That doesn't work for window.open() and <a target> at the very least.

> The document itself can change its name by 
> changing <code>window.name</code> to any arbitrary string.

The document doesn't change its name; it changes the window's name.  That is, 
the name change outlives the document.

> For example, if you have &lt;object data="<var>file</var>" 
> id="test"/&gt; in an XHTML document the <code>window.name</code> DOM 
> attribute within <var>file</var> will be "test" initially.

I'm still not clear on what "initially" means.

Received on Sunday, 5 March 2006 18:57:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC