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

ISSUE-65: Should Window spec add parentWindow property to documents?

From: Web APIs Issue Tracker <dean+cgi@w3.org>
Date: Tue, 4 Apr 2006 07:46:30 +0000 (GMT)
To: public-webapi@w3.org
Message-Id: <20060404074630.1443333201@kearny.w3.org>


ISSUE-65: Should Window spec add parentWindow property to documents?

http://www.w3.org/2005/06/tracker/webapi/issues/65

Raised by: Maciej Stachowiak
On product: Window

Window Object 1.0 calls for documents to implement the DocumentWindow interface, which inherits 
from AbstractView, and therefore gives a way to get the Window (but as an AbstractView) via the 
defaultView property. However, IE doesn't implement this; instead it has a parentWindow property 
which gets you the document's window object (*not* the parent document's window object).

Current implementation state is as follows:

             parentWindow    defaultView
IE                  Yes                  No
Firefox          No                   Yes
Safari            No                  Wrong
Opera           Yes                   Yes

Options would be:

1) forget about defaultView, just have parentWindow
2) don't add parentWindow
3) keep both

I favor #3.
Received on Tuesday, 4 April 2006 07:46:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:54 GMT