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

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 UTC