Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1394

Node.lookupNamespaceURI() sometimes returns an empty string instead of null.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.1
    • 2.10.0
    • DOM (Level 3 Core)
    • None

    Description

      When a namespace has been undeclared Xerces is returning "" from lookupNamespaceURI() instead of null. The DOM Level 3 spec [1][2] requires that null be returned if the given prefix is not bound.

      [1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Node3-lookupNamespaceURI
      [2] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/namespaces-algorithms.html#lookupNamespaceURIAlgo

      Attachments

        1. NamespaceLookupTest.java
          2 kB
          Michael Glavassevich

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            mrglavas@ca.ibm.com Michael Glavassevich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: