You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Lenny Primak (Created) (JIRA)" <ji...@apache.org> on 2011/10/24 22:02:32 UTC
[jira] [Created] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed in XHTML 1.0
HTML 5 doctype is not preserved, gets transformed in XHTML 1.0
--------------------------------------------------------------
Key: TAP5-1720
URL: https://issues.apache.org/jira/browse/TAP5-1720
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.3, 5.4
Reporter: Lenny Primak
Priority: Minor
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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1720) HTML 5 doctype is not preserved,
gets transformed into XHTML 1.0
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135465#comment-13135465 ]
Hudson commented on TAP5-1720:
------------------------------
Integrated in tapestry-trunk-freestyle #607 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/607/])
TAP5-1720: Supply a "<!DOCTYPE html>" for any component template that doesn't have a specific <!DOCTYPE>
TAP5-1720: HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1188867
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/dynamic/DynamicTemplateParserImpl.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/dynamic/DynamicTemplateSaxParser.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/DTDData.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/SaxTemplateParser.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/TemplateParser.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/TemplateParserImpl.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/XMLTokenStream.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/TemplateParserImplTest.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/internal/services/html_entities.tml
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1188866
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/XMLTokenStream.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/TemplateParserImplTest.java
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1720) HTML 5 doctype is not preserved,
gets transformed into XHTML 1.0
Posted by "Lenny Primak (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134432#comment-13134432 ]
Lenny Primak commented on TAP5-1720:
------------------------------------
Can't the 'original' doctype be saved in the request object and then restored
default markup writer?
Seems like that would be a good default behavior
that preserves the original object's doctype.
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed into XHTML 1.0
Posted by "Lenny Primak (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lenny Primak updated TAP5-1720:
-------------------------------
Summary: HTML 5 doctype is not preserved, gets transformed into XHTML 1.0 (was: HTML 5 doctype is not preserved, gets transformed in XHTML 1.0)
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed into XHTML 1.0
Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1720.
--------------------------------------
Resolution: Fixed
Fix Version/s: 5.3
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed into XHTML 1.0
Posted by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1720.
--------------------------------------
Resolution: Fixed
Fix Version/s: 5.3
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed into XHTML 1.0
Posted by "Howard M. Lewis Ship (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-1720:
------------------------------------------
Assignee: Howard M. Lewis Ship
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed into XHTML 1.0
Posted by "Howard M. Lewis Ship (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-1720:
------------------------------------------
Assignee: Howard M. Lewis Ship
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Assignee: Howard M. Lewis Ship
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1720) HTML 5 doctype is not preserved,
gets transformed into XHTML 1.0
Posted by "Lenny Primak (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134431#comment-13134431 ]
Lenny Primak commented on TAP5-1720:
------------------------------------
(from Howard Lewis Ship)
<!doctype html> is expanded to the transitional DTD, to keep the XML
parser happy (especially about HTML entities) ... but there's no good
way to filter it out. Also, a missing <!doctype> is treated the same
as <!doctype html>.
There's a Doctype component that can be used to ensure that the output
doctype is also <!DOCTYPE html>, which you shoudl probably add to your
Layout component.
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1720) HTML 5 doctype is not preserved,
gets transformed into XHTML 1.0
Posted by "Lenny Primak (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134432#comment-13134432 ]
Lenny Primak commented on TAP5-1720:
------------------------------------
Can't the 'original' doctype be saved in the request object and then restored
default markup writer?
Seems like that would be a good default behavior
that preserves the original object's doctype.
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1720) HTML 5 doctype is not preserved,
gets transformed into XHTML 1.0
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13135465#comment-13135465 ]
Hudson commented on TAP5-1720:
------------------------------
Integrated in tapestry-trunk-freestyle #607 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/607/])
TAP5-1720: Supply a "<!DOCTYPE html>" for any component template that doesn't have a specific <!DOCTYPE>
TAP5-1720: HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1188867
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/dynamic/DynamicTemplateParserImpl.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/dynamic/DynamicTemplateSaxParser.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/DTDData.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/SaxTemplateParser.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/TemplateParser.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/TemplateParserImpl.java
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/XMLTokenStream.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/TemplateParserImplTest.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/internal/services/html_entities.tml
hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1188866
Files :
* /tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/XMLTokenStream.java
* /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/internal/services/TemplateParserImplTest.java
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.3
>
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1720) HTML 5 doctype is not preserved,
gets transformed into XHTML 1.0
Posted by "Lenny Primak (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134431#comment-13134431 ]
Lenny Primak commented on TAP5-1720:
------------------------------------
(from Howard Lewis Ship)
<!doctype html> is expanded to the transitional DTD, to keep the XML
parser happy (especially about HTML entities) ... but there's no good
way to filter it out. Also, a missing <!doctype> is treated the same
as <!doctype html>.
There's a Doctype component that can be used to ensure that the output
doctype is also <!DOCTYPE html>, which you shoudl probably add to your
Layout component.
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TAP5-1720) HTML 5 doctype is not preserved, gets
transformed into XHTML 1.0
Posted by "Lenny Primak (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lenny Primak updated TAP5-1720:
-------------------------------
Summary: HTML 5 doctype is not preserved, gets transformed into XHTML 1.0 (was: HTML 5 doctype is not preserved, gets transformed in XHTML 1.0)
> HTML 5 doctype is not preserved, gets transformed into XHTML 1.0
> ----------------------------------------------------------------
>
> Key: TAP5-1720
> URL: https://issues.apache.org/jira/browse/TAP5-1720
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.3, 5.4
> Reporter: Lenny Primak
> Priority: Minor
>
> 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:p="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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira