Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2071

Tapestry should output valid HTML5 when using the HTML5 doctype in templates

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.6
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:

      Description

      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

        Attachments

        1. html5.patch
          20 kB
          Ulrich Stärk

          Activity

            People

            • Assignee:
              ulrich.staerk Ulrich Stärk
              Reporter:
              ttheb TtheB
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: