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

Can't write empty DIV inside HTML macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.4-milestone-1
    • Old version in the platform
    • XML
    • any
    • empty div html macro
    • Unit
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: