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

Re: ISSUE-66: should Documents that aren\'t being presented be required to have a null defaultView?

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 05 Apr 2006 17:15:23 -0700
Message-ID: <44345D9B.7080409@sicking.cc>
To: Ian Hickson <ian@hixie.ch>
Cc: Web APIs WG <public-webapi@w3.org>

Ian Hickson wrote:
> On Wed, 5 Apr 2006, Jonas Sicking wrote:
>> We definitely want to allow all Documents to implement DocumentWindow. I 
>> don't want to have two versions of every document class and have to 
>> worry about constructing the right one.
> 
> Um, well, every browser I've tested already does it, and given the kind of 
> stuff that DocumentWindow has (.location, .cookie, .execCommand, etc), all 
> of which has to be neutered for these non-Windowed Documents, it seems 
> easiest to just remove the relevant members.

At least Firefox does not. It implements nsIDOMNSDocument and 
nsIDOMNSHTMLDocument (which is the interfaces where we have these 
members) on all documents, and I strongly suspect there are other 
browsers that behave the same way.

/ Jonas
Received on Thursday, 6 April 2006 00:15:36 GMT

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