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

Mix of qualified and local names for AbstractElement.setAttributeNS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • SVG DOM
    • None
    • 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

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

            Dates

              Created:
              Updated: