tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Canfield (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (TAP5-1040) Allow HTML5 doctype to be printed
Date Mon, 21 Feb 2011 20:22:39 GMT

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

Josh Canfield resolved TAP5-1040.

       Resolution: Fixed
    Fix Version/s: 5.2.5

Applied the patch and updated the unit tests.

> Allow HTML5 doctype to be printed
> ---------------------------------
>                 Key: TAP5-1040
>                 URL: https://issues.apache.org/jira/browse/TAP5-1040
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2.0,
>            Reporter: Alexander Kiel
>            Assignee: Josh Canfield
>            Priority: Minor
>             Fix For: 5.3.0, 5.2.5
>         Attachments: added_ability_to_print_the_HTML5_DOCTYPE.patch
> According to the HTML5 Working Draft [1], the doctype to be used in the case you are
using the HTML syntax is:
> <!DOCTYPE HTML> case-insensitive
> Unfortunately the class org.apache.tapestry5.dom.DTD doesn't allow doctypes with empty
public and system identifier. It is also not possible to output the DOCTYPE legacy string
<!DOCTYPE HTML SYSTEM "about:legacy-compat">, because some parser internal to Tapestry
tries to resolve the system identifier. The best thing, I was able to output is the full HTML
4.01 strict doctype:
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
> It is allowed in HTML5 as obsolete permitted DOCTYPE string, but not desired.
> It would be very simple to allow for what empty HTML5 doctype in org.apache.tapestry5.dom.DTD.
> [1]: http://www.w3.org/TR/2010/WD-html5-20100304/

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message