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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.7 M1
    • Fix Version/s: None
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • keywords:
      rendering,table
    • Similar issues:

      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

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

                Dates

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