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

HtmlCleaner shouldn't transform content when creating a Document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Solved By
    • Affects Version/s: 10.11
    • Fix Version/s: None
    • Component/s: XML
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When an HTML is parsed and serialized in a w3c DOM Document, some attribute values are transformed in XWikiDOMSerializer: for example an image source like http://foo?a=b&b=a will be transformed to http://foo?a=b&b=a.

      This kind of transformation shouldn't be done at that stage since the Document should reflect the exact content of the page: this kind of transformation - if needed - should be done only when serializing the Document back to HTML.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: