Re: [DOMCore] overconstained DocumentType.ownerDocument

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 UTC