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

Invalid inline CSS generated by the HTMLCleaner

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.4
    • Fix Version/s: 5.4.5, 6.1-milestone-2
    • Component/s: XML
    • Labels:
      None
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The XWikiDOMSerializer uses // to escape the CDATA marker for both <script> and <style> elements, but // is not valid CSS syntax.

      Among other things, this breaks embedded SVGs, since Batik ignores invalid style elements.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                sdumitriu Sergiu Dumitriu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: