Tapestry 5
  1. Tapestry 5
  2. TAP5-385

Tapestry 5 often renders empty elements incorrectly

    Details

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

          Howard M. Lewis Ship made changes -
          Summary Tapestry 5 renders an HTML output often renders empty elements incorrect Tapestry 5 often renders empty elements incorrectly
          Howard M. Lewis Ship made changes -
          Fix Version/s 5.1.0.0 [ 12313428 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 5.0.16 [ 12313427 ]
          Howard M. Lewis Ship made changes -
          Status Reopened [ 4 ] In Progress [ 3 ]
          Howard M. Lewis Ship made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Howard M. Lewis Ship made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Howard M. Lewis Ship made changes -
          Field Original Value New Value
          Link This issue is a clone of TAP5-333 [ TAP5-333 ]
          Peter Stavrinides created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development