You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Alexander Kiel (JIRA)" <ji...@apache.org> on 2010/03/03 15:46:27 UTC

[jira] Created: (TAP5-1040) Allow HTML5 doctype to be printed

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.1.0.5, 5.2.0
            Reporter: Alexander Kiel
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Alexander Kiel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Kiel updated TAP5-1040:
---------------------------------

    Attachment: added_ability_to_print_the_HTML5_DOCTYPE.patch

Path against the trunk version of org.apache.tapestry5.dom.DTD. I simply added the ability to print DOCTYPEs without public or system identifiers.

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Robin Komiwes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840698#action_12840698 ] 

Robin Komiwes commented on TAP5-1040:
-------------------------------------

It seems that this issue is a duplicate of this one: https://issues.apache.org/jira/browse/TAP5-840

Patch has been made, but unfortunately never reviewed :(

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Alexander Kiel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840706#action_12840706 ] 

Alexander Kiel commented on TAP5-1040:
--------------------------------------

I don't think that https://issues.apache.org/jira/browse/TAP5-840 is exactly the same. It's more about the possibility to use named HTML character entities in Tapestry templates (*.tml) if you are using the HTML5 DOCTYPE in the template.

But if you are using the HTML5 DOCTYPE in the template, it would not be output. I will submit a patch for this.

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Alexander Kiel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840706#action_12840706 ] 

Alexander Kiel commented on TAP5-1040:
--------------------------------------

I don't think that https://issues.apache.org/jira/browse/TAP5-840 is exactly the same. It's more about the possibility to use named HTML character entities in Tapestry templates (*.tml) if you are using the HTML5 DOCTYPE in the template.

But if you are using the HTML5 DOCTYPE in the template, it would not be output. I will submit a patch for this.

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Albert Tumanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865758#action_12865758 ] 

Albert Tumanov commented on TAP5-1040:
--------------------------------------

Thanks for the patch ! 

I've done workaround by creating patched org.apache.tapestry5.dom.DTD class in my application. 

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Robin Komiwes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840698#action_12840698 ] 

Robin Komiwes commented on TAP5-1040:
-------------------------------------

It seems that this issue is a duplicate of this one: https://issues.apache.org/jira/browse/TAP5-840

Patch has been made, but unfortunately never reviewed :(

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>
> 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.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Albert Tumanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865758#action_12865758 ] 

Albert Tumanov commented on TAP5-1040:
--------------------------------------

Thanks for the patch ! 

I've done workaround by creating patched org.apache.tapestry5.dom.DTD class in my application. 

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TAP5-1040) Allow HTML5 doctype to be printed

Posted by "Alexander Kiel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Kiel updated TAP5-1040:
---------------------------------

    Attachment: added_ability_to_print_the_HTML5_DOCTYPE.patch

Path against the trunk version of org.apache.tapestry5.dom.DTD. I simply added the ability to print DOCTYPEs without public or system identifiers.

> 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, 5.1.0.5
>            Reporter: Alexander Kiel
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.