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.

http://dvcs.w3.org/hg/domcore/rev/1ca6aabc0984

Thanks
Ms2ger
Received on Friday, 3 June 2011 08:26:43 GMT

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