Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25787

Outdated documentation of the HTML sanitizer configuration in xwiki.properties

    XMLWordPrintable

Details

    • Unknown
    • N/A

    Description

      The documentation of the HTML sanitizer configuration in xwiki.properties is outdated:

      • The documentation of xml.htmlElementSanitizer.extraElementRestrictedAttributes states that only the name attribute is restricted by default. Since XCOMMONS-3866, the HTML sanitizer also restricts the for attribute to the label and output elements.
      • The links to the lists of allowed tags and attributes in the documentation of xml.htmlElementSanitizer.extraAllowedTags and xml.htmlElementSanitizer.extraAllowedAttributes point to versions of the code from 2022. They miss later changes like the removal of the form-related tags (XCOMMONS-2634) and the support of camel case SVG element names (XCOMMONS-3869), and the line numbers in some of them no longer match the lists.

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: