[Webkit-unassigned] [Bug 101120] New: Copying & pasting tables from Excel results in verbose markup

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 2 16:08:45 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=101120

           Summary: Copying & pasting tables from Excel results in verbose
                    markup
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: koivisto at iki.fi, simon.fraser at apple.com,
                    enrica at apple.com


Copying tables from a html document Excel generated, and pasting into a contenteditable (e.g. Gmail) results in a very verbose markup because we end up inlining all styles.

e.g.

<style>
table {
    mso-displayed-decimal-separator:"\.";
    mso-displayed-thousand-separator:"\,";
}
td {
    mso-style-parent:style0;
    padding:0px;
    mso-ignore:padding;
    color:black;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:Candara, sans-serif;
    mso-font-charset:0;
    mso-number-format:General;
    text-align:general;
    vertical-align:bottom;
    border:none;
    mso-background-source:auto;
    mso-pattern:auto;
    mso-protection:locked visible;
    white-space:nowrap;
    mso-rotate:0;
}
</style>
<table border=0 cellpadding=0 cellspacing=0 width=916 style='border-collapse:
 collapse;table-layout:fixed;width:916pt'>
 <tr height=3 style='mso-height-source:userset;height:3.0pt'>
  <td height=3 width=6 style='height:3.0pt;width:6pt'></td>
 </tr>
</table>

can be transformed into:

<td height="3" width="6" style="padding: 0px; font-size: 12pt; font-family: Candara, sans-serif; vertical-align: bottom; border: none; white-space: nowrap; height: 3pt; width: 6pt; "></td>

<rdar://problem/7044154>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list