tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Stavrinides (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-333) Tapestry 5 renders an XHTML label element incorrectly
Date Mon, 24 Nov 2008 08:50:44 GMT

    [ https://issues.apache.org/jira/browse/TAP5-333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650148#action_12650148
] 

Peter Stavrinides commented on TAP5-333:
----------------------------------------

The <label /> appears to be rendering correctly now, but this issue seems to extend
to other elements as well, I have seen it at least with: (<b /> and <a />). This
bug must have been introduced recently as it does not appear in 5.0.14, but appears in 5.0.16...
I have not tested 5.0.15. 

<b class="b1" /><b class="b2" /><b class="b3" /><b class="b4" />
		
Firebug picks up the incorrect <b /> tag's markup as:
<b class="b1">
      <b class="b2">
           <b class="b3">
               <b class="b4"/>
           </b>
       </b>
</b>

> Tapestry 5 renders an XHTML label element incorrectly
> -----------------------------------------------------
>
>                 Key: TAP5-333
>                 URL: https://issues.apache.org/jira/browse/TAP5-333
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.16
>            Reporter: Peter Stavrinides
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message