Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-952

Mix of qualified and local names for AbstractElement.setAttributeNS

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVG DOM
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      In the method "setAttributeNS" of the class "AbstractElement":

      • the 2nd argument "qualifiedName" is supposed to be a qualified name
      • a call to "getAttributeNodeNS" use the argument "qualifiedName"
      • a call to "createAttributeNS" use the argument "qualifiedName"

      The problem is that "getAttributeNodeNS" requires a local name (and not a qualified name).

      So, when I give a qualified name as second argument to "setAttributeNS",
      the serach made by "getAttributeNodeNS" always return null (even when the attribute already exists).

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              jfm@macqel.eu Marchant Jean-Fran├žois
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: