Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-509

Add support for HTML5 in the {{html}} Macro

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 9.11.4
    • Fix Version/s: None
    • Component/s: Macro - HTML
    • Labels:
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now the html macro only generates XHTML 1.0 and thus doesn't accept HTML5 elements (such as the FIGURE element). We need a way to be able to output HTML5 too.

      Example use case:

      • You use the {{figure}} macro in a wiki page. It renders correctly.
      • You use the same macro in a textarea xproperty and call
        $doc.display(...)

        and it'll be wrapped with the {{html}} macro and thus won't display the same result as the figure element is not supported by XHTML 1.0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response: