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

Our HTML Cleaner does not generate valid HTML5 content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.4-milestone-3
    • 6.2
    • XML
    • None
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: