commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Vivoda (JIRA)" <>
Subject [jira] Created: (JXPATH-114) node() implementation in DOM and JDOM model
Date Sun, 23 Dec 2007 17:47:42 GMT
node() implementation in DOM and JDOM model

                 Key: JXPATH-114
             Project: Commons JXPath
          Issue Type: Bug
            Reporter: Michele Vivoda
            Priority: Minor

I think that the code in, line 120 is wrong because considers only element
and document to be matched by node().
while instead it matches any node that pass from there.

case Compiler.NODE_TYPE_NODE :
                    return nodeType == Node.ELEMENT_NODE
                            || nodeType == Node.DOCUMENT_NODE;

should be changed to 

case Compiler.NODE_TYPE_NODE :
                    return true;

Same in JDOMNodePointer, line 391

                  return true;//(node instanceof Element) || (node instanceof Document);

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message