Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-709

Our HTML Cleaner does not generate valid HTML5 content

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.2
    • Fix Version/s: 6.4-milestone-3
    • Component/s: XML
    • Labels:
      None
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Problem

      The HTML Cleaner (used by the HTML Macro) generates valid XHTML1.0 code but invalid HTML5 code.

      Example:

      <img src="logo.png" alt="logo"></img>
      

      (invalid)

      instead of:

      <img src="logo.png" alt="logo" />
      

      (valid)

      Steps to reproduce:

      in a document, write:

      {{html}}
      <img src="logo.png" alt="logo" />
      {{/html}}
      

      You end up with

      <img src="logo.png" alt="logo"></img>
      

      Cause

      The problem comes from our XML Serializer (XWikiXMLOutputter) which does not produce good HTML5 code.

        Attachments

          Activity

            People

            Assignee:
            gdelhumeau Guillaume Delhumeau
            Reporter:
            gdelhumeau Guillaume Delhumeau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: