Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.0.16
-
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
- is cloned by
-
TAP5-385 Tapestry 5 often renders empty elements incorrectly
- Closed