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

HTML macro cleaner removes section tags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 10.4
    • Rendering
    • None
    • Unknown
    • N/A
    • N/A

    Description

      It seems the HTML macro clean=true is cleaning some valid tags. The <section> tag is being cleaned.

      This seems also to impact the wysiwyg editor which seems to clean it also regardless of the clean parameter (I'm creating a separate bug for this)

      The section tag should be valid:
      https://www.w3schools.com/tags/tag_section.asp

      Example content:

      
      If there is not border then the tag around the content has disappeared.
      
      == Clean false, Section ==
      
      {{html clean="false"}}
      <section style="text-align: center; border: 1px solid;">
      Hi
      </section>
      {{/html}}
      
      == Clean false, Div ==
      
      {{html clean="false"}}
      <div style="text-align: center; border: 1px solid;">
      Hi
      </div>
      {{/html}}
      
      == Clean true, Section ==
      
      {{html clean="true"}}
      <section style="text-align: center; border: 1px solid;">
      Hi
      </section>
      {{/html}}
      
      == Clean true, div ==
      
      {{html clean="true"}}
      <div style="text-align: center; border: 1px solid;">
      Hi
      </div>
      {{/html}}
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: