Tapestry 5
  1. Tapestry 5
  2. TAP5-333

Tapestry 5 renders an XHTML label element incorrectly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.16
    • Fix Version/s: 5.0.16
    • Component/s: tapestry-core
    • Labels:
      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.

        Issue Links

          Activity

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Peter Stavrinides
            • Votes:
              6 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development