I get this exception
org.w3c.dom.DOMException: NOT_SUPPORTED_ERR: The implementation does not support the requested type of object or operation.
at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
at org.apache.xerces.dom.CoreDocumentImpl.importNode(Unknown Source)
at org.apache.html.dom.HTMLDocumentImpl.cloneNode(Unknown Source)
at com.meterware.httpunit.ParsedHTML.getDOM(ParsedHTML.java:971)
at com.meterware.httpunit.WebResponse.getDOM(WebResponse.java:538)
at net.sourceforge.jwebunit.HttpUnitDialog.getFormElementNameForLabel(HttpU nitDialog.java:362)
etc.
trying to validate a page. An email from last August or so suggests this is because there is a DOCTYPE declaration and Xerces can't clone such a node, a suggestion which seems to be correct since I modified the page to suppress the DOCTYPE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
and it works fine, now. It seems like a testing framework for HTML pages should not discourage people from including DOCTYPE declarations, so is there an easy way around this?
Todd
P.S. assertFormElementPresentWithLabel did what I needed. I am a bit confused, because some assertions only take id's, some only take names, and some take both. Is there a reason for this, or is it just an accidental product of evolution that could be cleaned up in a future version?
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
