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

Html tables with attributes and internal <p> tags are not rendered properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.7 M1
    • {Unused} Rendering 2.0
    • None
    • rendering,table

    Description

      Consider the following xhtml table :

      <table border="1" bordercolor="#000000" cellpadding="4" cellspacing="0" width="665"><tbody><tr valign="TOP"><td width="323">
         <p class="western">Name</p>
        </td><td width="324">
         <p class="western">Age</p>
        </td></tr><tr valign="TOP"><td width="323">
         <p class="western">Lily</p>
        </td><td width="324">
         <p class="western">22</p>
        </td></tr><tr valign="TOP"><td width="323">
         <p class="western">Lilei</p>
        </td><td width="324">
         <p class="western">23</p>
        </td></tr></tbody></table>
      

      1. When this table is directly used in an xhtml 1.0 wiki page, it's not rendered correctly (refer to attachment - Screenshot.png)

      2. When this table is parsed via the xhtml->xwiki 2.0 parser, the generated wiki syntax is not correct, but it corresponds to the output (Screenshot.png).

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              asiri Asiri Rathnayake
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: