[ http://nagoya.apache.org/jira/browse/XALANJ-1427?page=history ]
Yash Talwar updated XALANJ-1427:
--------------------------------
Attachment: bug17128Patch.txt
I have looked into this defect. There are quite a few methods that are not
working properly.
Here is a brief list:
Methods for Document interface that are not working correctly in
org.apache.xml.dtm.ref.DTMNodeProxy:
getElementById(String elementId)
getElementsByTagName(String tagname)
getElementsByTagNameNS(String namespaceURI, String localName)
Methods for Element interface that are not working correctly in
org.apache.xml.dtm.ref.DTMNodeProxy:
getAttribute(String name)
getAttributeNS(String namespaceURI, String localName)
getAttributeNodeNS(String namespaceURI, String localName)
getElementsByTagName(String tagname)
getElementsByTagNameNS(String namespaceURI,String localName)
hasAttributeNS(String namespaceURI, String localName)
getNamedItemNS(String namespaceURI, String localName) method of
org.apache.xml.dtm.ref.DTMNamedNodeMap:
I am attaching a Patch "bug17128Patch.txt" to resolve the failure of above
mentioned methods.
> DTMNodeProxy dosent implement Element interface correctly
> ---------------------------------------------------------
>
> Key: XALANJ-1427
> URL: http://nagoya.apache.org/jira/browse/XALANJ-1427
> Project: XalanJ2
> Type: Bug
> Components: DTM
> Versions: 2.4
> Environment: Operating System: Other
> Platform: Other
> Reporter: Richard Zschech
> Assignee: Xalan Developers Mailing List
> Attachments: DTMDocumentImpl.patch, DTMNamedNodeMap.patch,
> DTMNodeProxy.patch, bug17128Patch.txt
>
> The getAttribute and getAttributeNS methods on an element are defined to
> return
> an empty string if the attribute dosent exist.
> Instead they return null causing problems if you go:
> element.getAttribute("foo").equals("blah")
> to test for the existance and value of an attribute in one go.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]