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/03/18 07:42:54 UTC
[Bug 1010] New - getElementByID() fails when using custom document factory subclassing DocumentImpl
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1010
*** shadow/1010 Sat Mar 17 22:42:54 2001
--- shadow/1010.tmp.29918 Sat Mar 17 22:42:54 2001
***************
*** 0 ****
--- 1,29 ----
+ +============================================================================+
+ | getElementByID() fails when using custom document factory subclassing Docu |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1010 Product: Xerces-J |
+ | Status: NEW Version: 1.3.0 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: Component: DOM |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: tom.dillon@trilogy.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Xerces 1.3.0
+
+ I'm using a custom document factory that subclasses
+ org.apache.xerces.dom.DocumentImpl. I subclass DOMParser, call
+ setDocumentClassName(). My document factory is used as I expect.
+
+ However, I find that when I'm using the custom factory the getElementByID()
+ method always returns null, whereas it works properly when using the standard
+ DocumentImpl factory.
+
+ The problem is at line 934 of the 1.3.0 DOMParser.java.
+
+ if (docClass.isAssignableFrom(defaultDocClass))
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org