Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-496

Can't write empty DIV inside HTML macro

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Old version in the platform
    • Fix Version/s: 5.4-milestone-1
    • Component/s: XML
    • Labels:
    • Environment:
      any
    • keywords:
      empty div html macro
    • Tests:
      Unit
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      XWiki 2.0 input:

      {{html}}
      <div id="x">before</div>
      <div id="y"/>
      <div id="z">after</div>
      {{/html}}
      

      XHTML result:

      <!--startmacro:html|-||-|
      <div id="x">before</div>
      <div id="y"/>
      <div id="z">after</div>
      --><div id="x">before</div>
      <div id="y">
      <div id="z">after</div></div><!--stopmacro-->
      

      As you can see the "empty" DIV wraps the last DIV.

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

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