You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Bob Harner (JIRA)" <ji...@apache.org> on 2011/06/18 04:01:47 UTC
[jira] [Commented] (TAP5-840) Support character references in tml
files with HTML 5 Doctype
[ https://issues.apache.org/jira/browse/TAP5-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051441#comment-13051441 ]
Bob Harner commented on TAP5-840:
---------------------------------
The supplied patch has grown stale and no longer applies cleanly against the trunk (but could probably be fixed). I guess this issue is awaiting consideration of whether to write a simple custom XML parser to replace the SAX parser (see http://tapestry.1045711.n5.nabble.com/State-on-HTML5-integration-woodstox-rollback-td2470926.html).
As a workaround, using entity numbers instead of names (© instead of ©, ™ instead of ™, etc.) works fine with the HTML5 doctype.
> 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.0.18
> Reporter: Ben Gidley
> Attachments: patch.txt
>
>
> Currently to support HTML character references (e.g. ©) 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