Re: Implementing HTMLDocument on all Documents (detailed review of the DOM)

On Tue, 21 Aug 2007 12:27:31 +0200, Simon Pieters <simonp@opera.com> wrote:

> We'd rather have the members of HTMLDocument that are useful for all  
> types of documents to be moved to the Document interface. This would  
> probably be:
>
> [...]
>
> Furthermore, it might make sense to move the following members from  
> HTMLElement to the Element interface:
>
> [...]

Or possibly have side interfaces with those members that are optional to  
be conforming to DOM Core, but are required to be implemented on all  
Documents and Elements to be conforming to HTML5.

> However, if we don't implement all supported interfaces on all  
> Documents, the question instead becomes when do you implement a specific  
> interface? Firefox decides on the MIME type, Opera decides on the root  
> element's namespace, however I haven't yet checked how this works when  
> e.g. replacing the root element or when creating new documents with DOM  
> methods. This would need to be defined.

It seems that Opera doesn't change the interface of the Document object in  
response to changes to the DOM.

> [...]

-- 
Simon Pieters
Opera Software

Received on Tuesday, 21 August 2007 12:21:10 UTC