Tapestry 5
  1. Tapestry 5
  2. TAP5-840

Support character references in tml files with HTML 5 Doctype

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.2.6, 5.1.0.5, 5.0.18
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      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.

      1. patch.txt
        17 kB
        Robin Komiwes

        Activity

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Ben Gidley
          • Votes:
            10 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development