You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/07/11 00:04:39 UTC
[Bug 2557] New: - javadoc incorrect: says DOMImplementationImpl.createDocument(...) accepts null for any of its arguments
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: xerces-j-dev@xml.apache.org |
+ | Reported By: dhuebel@pointserve.com |
+ | 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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org