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: Thu, 3 Sep 2009 09:42:04 +0000 (UTC)
To: Jonas Sicking <jonas@sicking.cc>
Cc: Alex Russell <slightlyoff@google.com>, Bo Yang <struggleyb.nku@gmail.com>, www-dom@w3.org
Message-ID: <Pine.LNX.4.62.0909030934340.6775@hixie.dreamhostps.com>
On Sat, 29 Aug 2009, Jonas Sicking wrote:
> On Sat, Aug 29, 2009 at 10:53 PM, Ian Hickson<ian@hixie.ch> wrote:
> > On Wed, 19 Aug 2009, Jonas Sicking wrote:
> >>
> >> One thing that seems unfortunate with the current API is that you can 
> >> call .open() on a document dynamically, thus changing behavior of any 
> >> node which has that node as ownerDocument (note that while nodes are 
> >> removed from the document when .open() is called, they don't change 
> >> ownerDocument).
> >
> > There are lots of unfortunate things with the current model, but I'm 
> > not sure they're a big deal.
> >
> > What would you like document.open() to do if called on an XML document 
> > if we don't convert to an HTML document?
> 
> Make document.open() do nothing other than throw an exception.

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 3 September 2009 09:39:36 GMT

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