[whatwg] Why are we merging Document and HTMLDocument again?

Ian Hickson ian at hixie.ch
Tue Mar 5 12:30:25 PST 2013


On Tue, 5 Mar 2013, Boris Zbarsky wrote:
> On 3/5/13 11:59 AM, Anne van Kesteren wrote:
> > On Tue, Mar 5, 2013 at 4:50 PM, Boris Zbarsky <bzbarsky at mit.edu> 
> > wrote:
> > > I don't care about the methods.  Putting all of those on Document is 
> > > fine by me, I think.
> > > 
> > > I care about the named getter being forced onto all documents.
> > 
> > Okay, so that is slightly different from how this thread started out.
> 
> I don't think it is.  I don't want to merge the prototype objects for 
> Document and HTMLDocument, because I don't want to stick a named getter 
> on every document.
> 
> What happens with individual methods is a separate story.

I'd be fine with having a Document descendant that is used for Documents 
that have global scopes / browsing contexts / the works, and one that is 
used for Documents that don't (e.g. createDocument(), XHR); would that 
address this issue?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list