Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31806

HTML tables in user-created content ignore cell padding and spacing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 11.0, 11.1
    • Fix Version/s: None
    • Component/s: morpheus, Portal
    • Labels:
      None
    • Test Plan:
      Hide

      1/ Check tables output by Sakai tools etc look like they do on live, eg, site info, new site, sign up ... well all tools really. Have our changes messed up the padding and spacing on tools pages? Check on desktop and mobile.

      2/ Create an HTML page in Resources (using the code below) and view as a standalone page (ie, not embedded within the Home tool) - does it preserve the cell-padding and spacing? Check on desktop and mobile.

      3/ link to the HTML page from Home Tool (Site Info URL) and chyeck padding and spacing is preserved. Check on desktop and mobile.

      4/ Paste the following HTML into each and every tool with a ckeditor textarea and check that the padding / spacing is preserved. Check on desktop and mobile.

      5/ Check what happens to other attributes on HTML pages created within Resources. Check on desktop and mobile. Look at:

      a/ is cell colour preserved,
      b/ is align= preserved
      c/ ..... and other attributes

      6/ Check that "something sensible" is being done with table widths. (Not 100% sure what "something sensible" is though. Maybe there's Morpheus code that tried to modify table width attributes so tables display well on a mobile?)

      That code again:

      <p>cell paddding</p>

      <table border="1" cellpadding="10" cellspacing="0" style="width:500px;" summary="summary">
      <caption>caption</caption>
      <tbody>
      <tr>
      <th><a href="https://weblearn.ox.ac.uk/access/content/group/cc2c88fe-a0fe-44d6-0046-89493362b2aa/countdown.html">
      https://weblearn.ox.ac.uk/access/content/group/cc2c88fe-a0fe-44d6-0046-89493362b2aa/countdown.html
      </a>
      </th>
      <th>hghghg jbjhjhj</th>
      </tr>
      <tr>
      <td style="background-color: rgb(255, 0, 0);">nbnkbkbb</td>
      <td>bb.mnbmn</td>
      </tr>
      <tr>
      <td>bvvhvhv</td>
      <td>mbjbjb</td>
      </tr>
      </tbody>
      </table>

      <p> </p>

      <p>cell spacing</p>

      <table border="1" cellpadding="0" cellspacing="10" style="width:500px;">
      <tbody>
      <tr>
      <td>;jkbkjbkjb</td>
      <td>.nbbmb</td>
      </tr>
      <tr>
      <td> </td>
      <td> </td>
      </tr>
      <tr>
      <td> </td>
      <td> </td>
      </tr>
      </tbody>
      </table>

      Show
      1/ Check tables output by Sakai tools etc look like they do on live, eg, site info, new site, sign up ... well all tools really. Have our changes messed up the padding and spacing on tools pages? Check on desktop and mobile. 2/ Create an HTML page in Resources (using the code below) and view as a standalone page (ie, not embedded within the Home tool) - does it preserve the cell-padding and spacing? Check on desktop and mobile. 3/ link to the HTML page from Home Tool (Site Info URL) and chyeck padding and spacing is preserved. Check on desktop and mobile. 4/ Paste the following HTML into each and every tool with a ckeditor textarea and check that the padding / spacing is preserved. Check on desktop and mobile. 5/ Check what happens to other attributes on HTML pages created within Resources. Check on desktop and mobile. Look at: a/ is cell colour preserved, b/ is align= preserved c/ ..... and other attributes 6/ Check that "something sensible" is being done with table widths. (Not 100% sure what "something sensible" is though. Maybe there's Morpheus code that tried to modify table width attributes so tables display well on a mobile?) That code again: <p>cell paddding</p> <table border="1" cellpadding="10" cellspacing="0" style="width:500px;" summary="summary"> <caption>caption</caption> <tbody> <tr> <th><a href="https://weblearn.ox.ac.uk/access/content/group/cc2c88fe-a0fe-44d6-0046-89493362b2aa/countdown.html"> https://weblearn.ox.ac.uk/access/content/group/cc2c88fe-a0fe-44d6-0046-89493362b2aa/countdown.html </a> </th> <th>hghghg jbjhjhj</th> </tr> <tr> <td style="background-color: rgb(255, 0, 0);">nbnkbkbb</td> <td>bb.mnbmn</td> </tr> <tr> <td>bvvhvhv</td> <td>mbjbjb</td> </tr> </tbody> </table> <p> </p> <p>cell spacing</p> <table border="1" cellpadding="0" cellspacing="10" style="width:500px;"> <tbody> <tr> <td>;jkbkjbkjb</td> <td>.nbbmb</td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> </tr> </tbody> </table>

      Description

      cell padding and spacing in User created tables on HTML pages is being ignored. This is probably desirable on a mobile but not on a desktop. Dont override the values on desktop

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  adamm Adam Marshall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code