W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2011

[whatwg] relationship between Document and HTMLDocument

From: David Flanagan <dflanagan@mozilla.com>
Date: Tue, 09 Aug 2011 10:59:02 -0700
Message-ID: <4E417566.5010005@mozilla.com>
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...
> -Boris
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 
compatibility impact.

Received on Tuesday, 9 August 2011 10:59:02 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC