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 made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.2.2 [ 12315376 ]
          Resolution Fixed [ 1 ]
          Josh Canfield made changes -
          Assignee Josh Canfield [ joshcanfield ]
          Paul Field made changes -
          Field Original Value New Value
          Link This issue relates to TAP5-708 [ TAP5-708 ]
          Josh Canfield created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development