W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

Re: [DOMCore] overconstained DocumentType.ownerDocument

From: Ms2ger <ms2ger@gmail.com>
Date: Fri, 03 Jun 2011 10:26:06 +0200
Message-ID: <4DE89A9E.1060805@gmail.com>
To: David Flanagan <dflanagan@mozilla.com>
CC: www-dom@w3.org
On 06/02/2011 11:05 PM, David Flanagan wrote:
> In §5.5.1, the algorithms for createDocument() and createHTMLDocument()
> both say to set the ownerDocument property of the DocumentType object
> and then to append that node to the new document.
> But in §5.3, step 3 of the appendChild() algorithm will raise an
> exception if the ownerDocument has already been set.

Good catch. I've tried to clarify this by having createDocument() and 
createHTMLDocument() rely on appendChild() to set the ownerDocument.


Received on Friday, 3 June 2011 08:26:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:17 UTC