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

Invalid HTML generated by a sequence of {{html clean="false"}}

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 9.2-rc-1
    • Macro - HTML
    • None

    Description

      The following XWiki 2.1 syntax:

      {{velocity}}{{html clean="false"}}<div>{{/html}}{{html clean="false"}}inline{{/html}}{{html clean="false"}}</div>{{/html}}{{/velocity}}
      

      which is a sequence of 3

      {{html clean="false"}}

      generates the following invalid HTML:

      <p><div>inline</div></p>
      

      If you're wondering what's the use case:

      {{velocity}}
      {{html clean="false"}}
      ...
      {{/html}}
      $doc.display('activated') <--- this generates {{html clean="false"}}...{{/html}}
      {{html clean="false"}}
      ...
      {{/html}}
      {{/velocity}}
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: