Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1647

HTML Escapes writes out characters illegal in HTML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.13-core
    • None
    • None
    • All

    Description

      The HTML specification disallows certain code points from appearing in HTML files (XML has essentially the same list, minus the high ISO characters) as specified in http://www.w3.org/TR/REC-html40/sgml/sgmldecl.html. The Trinidad HtmlEscapes utilities allow the low control characters and the high characters that are technically outside of Unicode to be output. This causes problems if the content is validated.

      The fix is to use numeric character references such as  rather than outputting code point 1 directly. In addition, Internet Explorer has a bug where � is output as "�" so it is preferable to suppress this character rather then outputting it.

      Attachments

        1. datePicker.gif
          7 kB
          Mathias Walter
        2. HTMLEscapes.patch
          0.3 kB
          Mathias Walter
        3. JIRA_1647_1_2_12_2.patch
          2.04 MB
          Jeanne Waldman

        Activity

          People

            btsulliv Blake Sullivan
            btsulliv Blake Sullivan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified