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

Support of redundant non-generated content div

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.2
    • Fix Version/s: 11.4-rc-1
    • Component/s: None
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      We do not support redundant non-generated content div when handling Macro content. So for example in a code such as:

      <!--startmacro:box|-|Old content-->
      <div class="box">
      <div data-xwiki-non-generated-content="java.util.List&lt;org.xwiki.rendering.block.Block&gt;" class="xwiki-metadata-container">
      <div data-xwiki-non-generated-content="java.util.List&lt;org.xwiki.rendering.block.Block&gt;" class="xwiki-metadata-container">
      <p>Some content</p>
      </div>
      </div>
      </div>
      <!--stopmacro-->
      

      all the content will be ignored right now. I propose to fix that to ignore those redundant unchanged-content div in such case.
      This can be especially helpful for XWIKI-16389 when adding a wikimacro inline editable content inside another inline editable macro, such as a box.

        Attachments

          Activity

            People

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

              Dates

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