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

HTML 5 doctype is not preserved, gets transformed into XHTML 1.0

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.3, 5.4
    • 5.3
    • tapestry-core
    • None

    Description

      Templates that use <!DOCTYPE html> still have
      the following (non-html5) output when viewed from the browser:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"><head>
      ....

      I believe that the HTML 5 doctype should be preserved 'out of the box'
      Meanwhile, there is a workaround by adding a contribution to MarkupRenderer service.

      --------------- tml ----------------------------
      <!DOCTYPE html>
      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd"
      xmlns="tapestry:parameter" xmlns:f="tapestry-library:flowlogix">
      <head>
      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
      <title>Erase Junk Mail</title>
      </head>
      <body>
      hello
      </body>
      </html>
      ---------- Java (blank)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hlship Howard Lewis Ship
            lprimak Lenny Primak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment