Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21347

eZOE: centered single table cells are not saved in IE8

    Details

      Description

      Centering a single cell does not persist on re-editing a page.

      Steps to reproduce:

      1. Edit an article in eZ Publish 5.1 in IE8;
      2. Create a table (e.g. 2x2) in eZOE;
      3. Center a cell of your choice;
      4. Publish article and re-edit. The cell is not centered, as the HTML to do so (e.g. <paragraph align="center">My content</paragraph>) is missing;

        Activity

        Hide
        Damien Pobel (Inactive) added a comment -

        I'm not able to reproduce this issue.

        Could you please try to reproduce it with the debug output enabled, the debug redirection enabled and the following configuration in settings/override/debug.ini.append.php:

        <?php /*
        [GeneralCondition]
        kernel-datatype-ezxmltext-ezoe=enabled
        kernel-datatype-ezxmltext=enabled
        */ ?>

        and copy/paste here the first element of the debug output (called "Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>") when saving the content.

        Show
        Damien Pobel (Inactive) added a comment - I'm not able to reproduce this issue. Could you please try to reproduce it with the debug output enabled, the debug redirection enabled and the following configuration in settings/override/debug.ini.append.php: <?php /* [GeneralCondition] kernel-datatype-ezxmltext-ezoe=enabled kernel-datatype-ezxmltext=enabled */ ?> and copy/paste here the first element of the debug output (called "Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>") when saving the content.
        Hide
        Nuno Oliveira (Inactive) added a comment -

        @Damien:

        I was able to reproduce this again on my 5.1 test environment using IE8. Here is what I got, hope it helps:

        Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>
         
        <P>This is article 1.</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>
        <P>&nbsp;</P>

        Show
        Nuno Oliveira (Inactive) added a comment - @Damien: I was able to reproduce this again on my 5.1 test environment using IE8. Here is what I got, hope it helps: Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>   <P>This is article 1.</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P> <P>&nbsp;</P>
        Hide
        Damien Pobel (Inactive) added a comment -

        Nuno: this issue is about centered style in table cells, there's not even a table in your example ...

        Show
        Damien Pobel (Inactive) added a comment - Nuno: this issue is about centered style in table cells, there's not even a table in your example ...
        Hide
        Nuno Oliveira (Inactive) added a comment -

        Damien: you are right, but these are nevertheless the results I got on the first "Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>". I tested again, and this time I noticed there are not one but three instances of "Debug: eZOEXMLInput::validateInput....." on the resulting debug output.

        Clearly, the second one provides the results you were asking for (the third one is blank):

        <TABLE class=default style="WIDTH: 100%" border=0 customattributes="summary|tstattribute_separationcaption|">
        <TBODY>
        <TR>
        <TD align=center class=ezoeAligncenter>1</TD>
        <TD>2</TD></TR>
        <TR>
        <TD>3</TD>
        <TD>4</TD></TR></TBODY></TABLE>

        For comparison, here are the results I got when testing this on FF:

        <table class="default" customattributes="summary|tstattribute_separationcaption|" style="width: 100%;" border="0">
        <tbody><tr>
        <td>
        <p class="ezoeAligncenter" align="center">1</p>
        </td>
        <td>
        <p>2</p>
        </td>
        </tr>
        <tr>
        <td>
        <p>3</p>
        </td>
        <td>
        <p>4</p>
        </td>
        </tr>
        </tbody></table>

        I hope this helps.

        Nuno

        Show
        Nuno Oliveira (Inactive) added a comment - Damien: you are right, but these are nevertheless the results I got on the first "Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>". I tested again, and this time I noticed there are not one but three instances of "Debug: eZOEXMLInput::validateInput....." on the resulting debug output. Clearly, the second one provides the results you were asking for (the third one is blank): <TABLE class=default style="WIDTH: 100%" border=0 customattributes="summary|tstattribute_separationcaption|"> <TBODY> <TR> <TD align=center class=ezoeAligncenter>1</TD> <TD>2</TD></TR> <TR> <TD>3</TD> <TD>4</TD></TR></TBODY></TABLE> For comparison, here are the results I got when testing this on FF: <table class="default" customattributes="summary|tstattribute_separationcaption|" style="width: 100%;" border="0"> <tbody><tr> <td> <p class="ezoeAligncenter" align="center">1</p> </td> <td> <p>2</p> </td> </tr> <tr> <td> <p>3</p> </td> <td> <p>4</p> </td> </tr> </tbody></table> I hope this helps. Nuno
        Hide
        Damien Pobel (Inactive) added a comment -

        Nuno: of course I was asking for the "Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>" related to XML Block where you are doing your tests...

        Show
        Damien Pobel (Inactive) added a comment - Nuno: of course I was asking for the "Debug: eZOEXMLInput::validateInput html from client <kernel-datatype-ezxmltext-ezoe>" related to XML Block where you are doing your tests...
        Hide
        Damien Pobel (Inactive) added a comment -

        I'm still not able to reproduce this issue or some details are missing.

        I tried to force the input with what IE8 generates. When re-editing the content, the content of table cell is still visually centered in OE (if you have a version of OE affected by EZP-21348 you need to set a width on the table to verify this fact). But it's true that unlike with others browsers, the center style is not set on the paragraph inside the td but is set on the td itself.

        Show
        Damien Pobel (Inactive) added a comment - I'm still not able to reproduce this issue or some details are missing. I tried to force the input with what IE8 generates. When re-editing the content, the content of table cell is still visually centered in OE (if you have a version of OE affected by EZP-21348 you need to set a width on the table to verify this fact). But it's true that unlike with others browsers, the center style is not set on the paragraph inside the td but is set on the td itself.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nuno Oliveira (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 hours, 30 minutes
              2h 30m