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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3.6
    • 5.4
    • tapestry-core

    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

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

            Dates

              Created:
              Updated:
              Resolved: