Tapestry 5
  1. Tapestry 5
  2. TAP5-709

Element.attribute(String name, String value) adds elements that already exist

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.4, 5.1.0.5
    • Fix Version/s: 5.2.2
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Element.attribute(String name, String value) passes null to Element.attribute(String namespace, String name, String value). The attribute stores the empty string for elements in the global namespace so there is never a match, and thus the new attribute is appended to the chain.

      Perhaps there should be a Document.GLOBAL_NAMESPACE_URI constant?

        Issue Links

          Activity

          Hide
          Hudson added a comment -

          Integrated in tapestry-5.2-freestyle #212 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/212/)

          Show
          Hudson added a comment - Integrated in tapestry-5.2-freestyle #212 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/212/ )

            People

            • Assignee:
              Josh Canfield
              Reporter:
              Josh Canfield
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development