[Webkit-unassigned] [Bug 74304] New: When copying a table row from other browsers, Safari and Chrome paste the content as text rather than within a table structure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 12 09:00:14 PST 2011


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

           Summary: When copying a table row from other browsers, Safari
                    and Chrome paste the content as text rather than
                    within a table structure
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: monahant at ie.ibm.com


To reproduce, open the attached html file in Firefox or IE.
Select the first table row by dragging the mouse across all content in the row and use Ctrl+C to copy the content.
Open the same html file in Safari or Chrome and click into one of the table cells. 
Use Ctrl+V to paste the content.
Problem: The table content is pasted as text, rather than within a table.

Using a clipboard inspector, the table structure is correctly represented in the HTML format on the clipboard as shown below. It seems like Webkit is using the Text format from the clipboard instead of the HTML format.

Clipboard HTML format in Firefox:
Version:0.9
StartHTML:00000181
EndHTML:00000296
StartFragment:00000215
EndFragment:00000260
SourceURL:file:///C:/Documents%20and%20Settings/Teresa%20Monahan/Desktop/test.html
<html><body>
<!--StartFragment--><tr><td>
                ccc</td><td>
                ddd</td></tr><!--EndFragment-->
</body>
</html>


Clipboard HTML format in Internet Explorer:
Version:1.0
StartHTML:000000235
EndHTML:000000545
StartFragment:000000448
EndFragment:000000474
StartSelection:000000448
EndSelection:000000469
SourceURL:file:///C:/Documents%20and%20Settings/Teresa%20Monahan/Desktop/test.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD></HEAD>

<BODY>

<DIV id=myId contentEditable=true>

<TABLE style="WIDTH: 500px" border=1>

<TBODY>

<TR><!--StartFragment--><TD>ccc</TD>
<TD>ddd</TD><!--EndFragment--></TR>
</TBODY>
</TABLE>
</DIV>
</BODY>
</HTML>

-- 
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