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