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

Re: How can I create a HTMLDocument from the DOMImplementation

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 19 Aug 2009 06:33:07 +0000 (UTC)
To: Bo Yang <struggleyb.nku@gmail.com>
Cc: www-dom@w3.org
Message-ID: <Pine.LNX.4.62.0908190626160.31215@hixie.dreamhostps.com>
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).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 19 August 2009 06:33:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:03 GMT