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're not happy with implementing the HTMLDocument interface on all  
> Document objects. It will affect all other types of documents and the  
> naming of their members in the future, and any additions to HTMLDocument  
> in the future becomes risky because it might break non-HTML documents.
>
> 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:
...
> ...because those might well be useful for any type of element.
>
> 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.
>
> I realise that moving members to Document and Element means changing DOM  
> Core, so coordination with the WebAPI WG would be necessary.

And welcome.

cheers

Chaals (chair, WebAPI)

-- 
   Charles McCathieNevile, Opera Software: Standards Group
   hablo español  -  je parle français  -  jeg lærer norsk
chaals@opera.com    Catch up: Speed Dial   http://opera.com

Received on Tuesday, 21 August 2007 11:49:53 UTC