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

HTML macro cleaner removes section tags

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.4
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: