[ 
https://issues.apache.org/jira/browse/TAP5-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13113095#comment-13113095
 ] 

Hudson commented on TAP5-840:
-----------------------------

Integrated in tapestry-trunk-freestyle #534 (See 
[https://builds.apache.org/job/tapestry-trunk-freestyle/534/])
    TAP5-840: Add Doctype component for greater control of rendered <!DOCTYPE>
TAP5-840: Support character references in tml files with HTML 5 Doctype

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1174466
Files : 
* 
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Doctype.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/DTD.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/dom/Document.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/structure/DTDPageElement.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/DoctypeTests.groovy
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/components/Border.java
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/components/Border.tml

hlship : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1174459
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
* 
/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/internal/services/html5_with_entities.tml


> Support character references in tml files with HTML 5 Doctype
> -------------------------------------------------------------
>
>                 Key: TAP5-840
>                 URL: https://issues.apache.org/jira/browse/TAP5-840
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.2.6, 5.1.0.5, 5.0.18
>            Reporter: Ben Gidley
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.3
>
>         Attachments: patch.txt
>
>
> Currently to support HTML character references (e.g. &copy;) you need to put 
> a HTML Doctype at the top of the TML file. 
> e.g. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> However for HTML 5 they have stopped using XML doctypes and instead use
> <!DOCTYPE html>
> If you change tapestry page to use this you can no longer use entities as the 
> XML parser doesn't know what to do. 
> Ideally there should be some kind of logic that detects <!DOCTYPE html> and 
> include a suitable DTD to resolve the common HTML entities. The HTML 5 
> specification defines the allowed named character references - 
> http://dev.w3.org/html5/spec/Overview.html#named-character-references. There 
> doesn't seem to be a DTD of allowed references maintained anymore.

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

        

Reply via email to