[whatwg] relationship between Document and HTMLDocument
dflanagan at mozilla.com
Tue Aug 9 10:59:02 PDT 2011
On 8/9/11 8:53 AM, Boris Zbarsky wrote:
> 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...
Yes, that is the case in FF and Chrome, at least. I didn't bring that
up because my intuition is that browsers could make that change (adding
HTMLDocument members to non-HTML documents) without as much web
More information about the whatwg