We are using jWebUnit for integration testing our web
application. This in turn uses HttpUnit for parsing
and inspecting the web responses.
Whilst using these tools we have found that when
calling the getElement method in HttpUnitDialog (from
jWebUnit), which calls through to ParsedHTML.getDOM,
the Xerces call:
getRootNode().cloneNode( /* deep */ true );
results in a DOMException being thrown.
It would appear that the importNode method in the
CoreDocumentImpl class does not provide an
implementation for cloning a node of type
DOCUMENT_NODE.
We cannot see any good reason why the getDom method in
ParsedHTML is calling cloneNode. This should perhaps
be in a seperate method.
For now, we have fixed our problem by simply removing
the call to cloneNode in getDOM. This feels like a
hack though and a more suitable solution would be
desirable.
Logged In: YES
user_id=1223774
See
http://sourceforge.net/tracker/index.php?func=detail&aid=1043363&group_id=6550&atid=106550