tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Stärk (JIRA) <j...@apache.org>
Subject [jira] [Updated] (TAP5-2071) [HTML5 DocType] Remove end tags from all Void Elements (e.g. input)
Date Tue, 26 Feb 2013 16:44:13 GMT

     [ https://issues.apache.org/jira/browse/TAP5-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ulrich Stärk updated TAP5-2071:

    Attachment: html5.patch

First shot at this issue.

Basically it adds another MarkupModel to handle HTML5 markup. The more intrusive part is in
PageRenderResponseHandlerImpl where we need to find out which doctype the Page's template
has set and in MarkupWriterFactoryImpl where we have to pass that information and select the
correct handler.

Please comment.
> [HTML5 DocType] Remove end tags from all Void Elements (e.g. input)
> -------------------------------------------------------------------
>                 Key: TAP5-2071
>                 URL: https://issues.apache.org/jira/browse/TAP5-2071
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3.6
>            Reporter: Tim Böhler
>              Labels: html5, validation
>         Attachments: html5.patch
> When using a HTML5 DocType in a Tapestry template, the textfield component is still rendered
with end tags:
> Template:
> <t:textfield t:id="loginEmail" value="loginEmail" type="email" />
> renders as:
> <input id="loginEmail" name="loginEmail" type="email"></input>
> According to the specs, end tags must not be specified for void elements.
> See http://www.w3.org/TR/html5/syntax.html#void-elements

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message