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

Macros that output STYLE tags inside the HTML body generate wiki syntax garbage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.1 RC1, 2.0.5
    • 2.0.3, 2.1 M1
    • WYSIWYG Editor
    • None
    • macro style
    • Integration
    • Unknown

    Description

      Follow this steps to reproduce:

      • edit a page in WYSIWYG mode
      • switch to source tab and set the content to
        {{html clean="false"}}
        <style type="text/css">
        .test {
          color: red;
        }
        </style>
        <div class="test">This is a test.</div>
        {{/html}}
        
      • switch to WYSIWYG tab; the style is correctly applied
      • switch back to source tab

      The result is:

      ~/~/
      \\.test {
        color: red;
      }
      \\~/~/
      
      {{html clean="false"}}
      <style type="text/css">
      .test {
        color: red;
      }
      </style>
      <div class="test">This is a test.</div>
      {{/html}}
      

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: