- From: Jonas Sicking <jonas@sicking.cc>
- Date: Wed, 19 Aug 2009 11:19:13 -0700
- To: Ian Hickson <ian@hixie.ch>
- Cc: Bo Yang <struggleyb.nku@gmail.com>, www-dom@w3.org
On Tue, Aug 18, 2009 at 11: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). But how do you create a text/html document (where HTML elements .nodeName is uppercase), vs. a application/xhtml+xml document (where HTML elements .nodeName is lowercase)? / Jonas
Received on Wednesday, 19 August 2009 18:20:14 UTC