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

          Josh Canfield created issue -
          Paul Field made changes -
          Field Original Value New Value
          Link This issue relates to TAP5-708 [ TAP5-708 ]
          Josh Canfield made changes -
          Assignee Josh Canfield [ joshcanfield ]
          Josh Canfield made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.2.2 [ 12315376 ]
          Resolution Fixed [ 1 ]
          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/ )
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          519d 20h 59m 1 Josh Canfield 17/Oct/10 23:22

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development