[whatwg] relationship between Document and HTMLDocument

Boris Zbarsky bzbarsky at MIT.EDU
Tue Aug 9 08:53:06 PDT 2011

On 8/9/11 11:18 AM, David Flanagan wrote:
> I assume that the use of an implements declaration rather than direct
> inheritance is done to create a clean boundary between the DOM spec and
> the HTML spec.

Or just to reflect Ian's belief that all documents should implement all 
document intefaces.

In particular, the current spec text (which indeed does not match either 
older DOM specs or current implementations) requires all Document 
objects to implement the HTMLDocument interface.  I don't believe that's 
the case in current UAs, fwiw...


More information about the whatwg mailing list