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

Tapestry 5 renders an XHTML label element incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.16
    • 5.0.16
    • tapestry-core
    • None

    Description

      The Tapestry markup renderer renders an empty XHTML <label /> incorrectly, it encloses subsequent elements instead of closing immediately, example:

      This line of code:
      <label class="formLabel" /><t:textfield t:id="address2" value="site.address2" /><br/>

      Is rendering as:
      <label class="formLabel">
      <input id="address2" type="text" name="address2"/>
      <img id="address2:icon" class="t-error-icon" src="../../assets/5.0.16-SNAPSHOT/tapestry/spacer.gif" alt="" style="display: none;"/>
      <br/>
      </label>

      instead of:
      <label class="formLabel inlineBlock"/>
      <input id="address2" type="text" name="address2"/>
      <img id="address2:icon" class="t-error-icon" src="../../assets/5.0.16-SNAPSHOT/tapestry/spacer.gif" alt="" style="display: none;"/>
      <br/>

      It appears an empty tag or whitespace is not dealt with.

      Attachments

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              pstavrinides Peter Stavrinides
              Votes:
              6 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: