Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-709

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.1.0.4, 5.1.0.5
    • 5.2.2
    • tapestry-core
    • 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?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            joshcanfield Josh Canfield
            joshcanfield Josh Canfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment