[wp-trac] [WordPress Trac] #27909: Pasting Tables from Excel Strips Tables

WordPress Trac noreply at wordpress.org
Wed Apr 30 00:21:09 UTC 2014


#27909: Pasting Tables from Excel Strips Tables
---------------------------------------+--------------------
 Reporter:  DH-Shredder                |       Owner:
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  3.9.2
Component:  TinyMCE                    |     Version:  3.9
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:
---------------------------------------+--------------------

Comment (by netweb):

 All the browsers via Excel 2013 using this Excel file
 [https://i.cloudup.com/wKlDfGgpnV.xlsx here] on Windows 8.1 x64

 Clipboard HTML Fragment
 {{{
 #!text/html
 <body link="#0563C1" vlink="#954F72">
         <table border=0 cellpadding=0 cellspacing=0 width=256 style
 ='border-collapse:collapse;width:192pt'>
         <!--StartFragment-->
         <col width=64 span=4 style='width:48pt'>
                 <tr height=20 style='height:15.0pt'>
                         <td height=20 align=right width=64
 style='height:15.0pt;width:48pt'>1</td>
                         <td align=right width=64 style='width:48pt'>5</td>
                         <td align=right width=64 style='width:48pt'>2</td>
                         <td align=right width=64 style='width:48pt'>5</td>
                 </tr>
                 <tr height=20 style='height:15.0pt'>
                         <td height=20 align=right
 style='height:15.0pt'>8</td>
                         <td align=right>2</td>
                         <td align=right>1</td>
                         <td align=right>3</td>
                 </tr>
         <!--EndFragment-->
         </table>
 </body>
 }}}

 Google Chrome 34
 * Everything looks fine here
 {{{
 #!text/html
 <table border="0" width="256" cellspacing="0" cellpadding="0">
         <colgroup>
                 <col span="4" width="64" />
         </colgroup>
         <tbody>
                 <tr>
                         <td align="right" width="64" height="20">1</td>
                         <td align="right" width="64">5</td>
                         <td align="right" width="64">2</td>
                         <td align="right" width="64">5</td>
                 </tr>
                 <tr>
                         <td align="right" height="20">8</td>
                         <td align="right">2</td>
                         <td align="right">1</td>
                         <td align="right">3</td>
                 </tr>
         </tbody>
 </table>
 }}}

 Internet Explorer 11
 * Note the `È` at the top of the code
 * Styles are not removed
 {{{
 #!text/html
 È
 <table style="width: 192pt; border-collapse: collapse;" border="0"
 width="256" cellspacing="0" cellpadding="0">
         <colgroup>
                 <col style="width: 48pt;" span="4" width="64" />
         </colgroup>
         <tbody>
                 <tr style="height: 15pt;">
                         <td style="border: 0px black; width: 48pt; height:
 15pt; background-color: transparent;" align="right" width="64"
 height="20">
                                 <span style="font-family: Calibri; font-
 size: medium;">1</span>
                         </td>
                         <td style="border: 0px black; width: 48pt;
 background-color: transparent;" align="right" width="64">
                                 <span style="font-family: Calibri; font-
 size: medium;">5</span>
                         </td>
                         <td style="border: 0px black; width: 48pt;
 background-color: transparent;" align="right" width="64">
                                 <span style="font-family: Calibri; font-
 size: medium;">2</span>
                         </td>
                         <td style="border: 0px black; width: 48pt;
 background-color: transparent;" align="right" width="64">
                                 <span style="font-family: Calibri; font-
 size: medium;">5</span>
                         </td>
                 </tr>
                 <tr style="height: 15pt;">
                         <td style="border: 0px black; height: 15pt;
 background-color: transparent;" align="right" height="20">
                                 <span style="font-family: Calibri; font-
 size: medium;">8</span>
                         </td>
                         <td style="border: 0px black; background-color:
 transparent;" align="right">
                                 <span style="font-family: Calibri; font-
 size: medium;">2</span>
                         </td>
                         <td style="border: 0px black; background-color:
 transparent;" align="right">
                                 <span style="font-family: Calibri; font-
 size: medium;">1</span>
                         </td>
                         <td style="border: 0px black; background-color:
 transparent;" align="right">
                                 <span style="font-family: Calibri; font-
 size: medium;">3</span>
                         </td>
                 </tr>
         </tbody>
 </table>
 }}}

 Firefox 29
 * Styles partially removed
 {{{
 #!text/html
 <table border="0" width="256" cellspacing="0" cellpadding="0">
         <colgroup>
                 <col style="width: 48pt;" span="4" width="64" />
         </colgroup>
         <tbody>
                 <tr style="height: 15.0pt;">
                         <td style="height: 15.0pt; width: 48pt;"
 align="right" width="64" height="20">1</td>
                         <td style="width: 48pt;" align="right"
 width="64">5</td>
                         <td style="width: 48pt;" align="right"
 width="64">2</td>
                         <td style="width: 48pt;" align="right"
 width="64">5</td>
                 </tr>
                 <tr style="height: 15.0pt;">
                         <td style="height: 15.0pt;" align="right"
 height="20">8</td>
                         <td align="right">2</td>
                         <td align="right">1</td>
                         <td align="right">3</td>
                 </tr>
         </tbody>
 </table>
 }}}

 Opera 12.17
 * Styles not removed
 {{{
 #!text/html
 <table style="border-collapse: collapse; width: 192pt;" border="0"
 width="256" cellspacing="0" cellpadding="0">
         <colgroup> </colgroup>
         <tbody>
                 <tr style="height: 15.0pt;">
                         <td style="height: 15.0pt; width: 48pt;"
 align="right" width="64" height="20">1</td>
                         <td style="width: 48pt;" align="right"
 width="64">5</td>
                         <td style="width: 48pt;" align="right"
 width="64">2</td>
                         <td style="width: 48pt;" align="right"
 width="64">5</td>
                 </tr>
                 <tr style="height: 15.0pt;">
                         <td style="height: 15.0pt;" align="right"
 height="20">8</td>
                         <td align="right">2</td>
                         <td align="right">1</td>
                         <td align="right">3</td>
                 </tr>
         </tbody>
 </table>
 }}}

 Opera 22.0.1471.8
 * Everything looks fine here
 {{{
 #!text/html
 <table border="0" width="256" cellspacing="0" cellpadding="0">
         <colgroup>
                 <col span="4" width="64" />
         </colgroup>
         <tbody>
                 <tr>
                         <td align="right" width="64" height="20">1</td>
                         <td align="right" width="64">5</td>
                         <td align="right" width="64">2</td>
                         <td align="right" width="64">5</td>
                 </tr>
                 <tr>
                         <td align="right" height="20">8</td>
                         <td align="right">2</td>
                         <td align="right">1</td>
                         <td align="right">3</td>
                 </tr>
         </tbody>
 </table>
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27909#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list