W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

Re: How can I create a HTMLDocument from the DOMImplementation

From: Bo Yang <struggleyb.nku@gmail.com>
Date: Wed, 19 Aug 2009 17:47:40 +0800
Message-ID: <41f08ee10908190247t680efa9fj9f9b30705c10a8d4@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: www-dom@w3.org
On Wed, Aug 19, 2009 at 2:33 PM, Ian Hickson<ian@hixie.ch> wrote:
> On Tue, 18 Aug 2009, Bo Yang wrote:
>> The Core module define the DOMImplementation interface which is used to
>> bootstrap the DOM, to create Document and DocumentType. But I can't find
>> a way to create a specific type of Document from that interface. I mean,
>> how can I create HTMLDocument from some DOMImplementation? Thanks!
> With HTML5, all Document objects implement all the subinterfaces
> (HTMLDocument, SVGDocument, etc) all the time, so going forward it'll be a
> moot point (unless that requirement is changed).

Thanks for your reply. Does this mean I can implement the creation of
HTMLDocument using any method I like and all these will be the same
Document object later if HTML5 get supported in my implementation?

Received on Wednesday, 19 August 2009 09:48:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:55 UTC