Hi Randall,

It's a known problem [1]. The HTML DOM doesn't have an active maintainer 
(and hasn't had one in several years) so bugs like this are most likely to 
be fixed if someone from the community provides a patch and a test for 
verifying the fix.

Thanks.

[1] http://issues.apache.org/jira/browse/XERCESJ-1021

Randall Theobald <[EMAIL PROTECTED]> wrote on 10/20/2005 03:03:38 PM:

> 
> Calling org.apache.html.dom.HTMLDocumentImpl.cloneNode(true) when it
> contains a <!doctype ...> element results in a DOMException being 
> thrown from org.apache.xerces.dom.CoreDocumentImpl.importNode(...). 
> 
> CoreDocumentImpl uses a private importNode(...) method to do the 
> cloning, which takes a flag of whether a cloning operation is taking
> place. There is a disconnect going from the HTMLDocumentImpl.
> cloneNode() call to the importNode call since the importNode method 
> 'isCloning' flag is false, which causes the importing of a DOCUMENT 
> node type to fail. 
> 
> Is this a known problem? I ran into it while using HttpUnit. 
> 
> thanks,
> 
> Randall Theobald 
> Staff Software Engineer, Austin, TX 
> IBM WebSphere Process Server Development 
> (512) 838-9349, t/l: 678-9349 
> [EMAIL PROTECTED] 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to