http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2557 *** shadow/2557 Tue Jul 10 15:04:39 2001 --- shadow/2557.tmp.29212 Tue Jul 10 15:04:39 2001 *************** *** 0 **** --- 1,38 ---- + +============================================================================+ + | javadoc incorrect: says DOMImplementationImpl.createDocument(...) accepts | + +----------------------------------------------------------------------------+ + | Bug #: 2557 Product: Xerces-J | + | Status: NEW Version: 1.4.1 | + | Resolution: Platform: All | + | Severity: Minor OS/Version: All | + | Priority: Other Component: DOM | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + According to the javadoc for DOMImplementationImpl + + createDocument(java.lang.String namespaceURI, + java.lang.String qualifiedName, + DocumentType doctype) + + accepts null for any of its arguments. When null is passed as the value of + qualifiedName, a DOMException is thrown: "DOM002 Illegal character" + + The DOM Level 2 Core spec does not specify that null is an acceptable value for + this argument, as it does for the docType argument. It appears that the + behavior is okay, but the javadoc is wrong. + + The following code will throw a DOM002 Illegal character error: + + DOMImplementationImpl.getDOMImplementation().createDocument(null, null, + null); + + while this code runs fine: + + DOMImplementationImpl.getDOMImplementation().createDocument(null, "hi", + null); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
