Bug 24895 - Cannot paste entire table row into table
Summary: Cannot paste entire table row into table
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://www.mozilla.org/editor/midasdemo/
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-27 13:36 PDT by Annie Sullivan
Modified: 2009-07-27 21:40 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Annie Sullivan 2009-03-27 13:36:00 PDT
Steps to reproduce:
1. Go to midas demo: http://www.mozilla.org/editor/midasdemo/
2. Enter the following HTML:
<table border="1"><tbody><tr><td>one</td><td>two</td></tr><tr><td><br></td><td><br></td></tr></tbody></table>
3. Select the entire top row of the table and copy.

4a. Click on the first cell of the second table row and paste. A new table is created inside the cell like this:
<table border="1"><tbody><tr><td>one</td><td>two</td></tr><tr><td><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; "><table border="1"><tbody><tr><td>one</td><td>two</td></tr></tbody></table></span></td><td><br></td></tr></tbody></table>

4b. After step 3, select the entire second row and paste. A new table is created BELOW the original table, leaving the second row of the first table empty:
<table border="1"><tbody><tr><td>one</td><td>two</td></tr><tr><td><br></td><td><br></td></tr></tbody></table><table border="1"><tbody><tr><td>one</td><td>two</td></tr></tbody></table><br>

Expected result: second row of table should be replaced by content from first row, like this:
<table border="1"><tbody><tr><td>one</td><td>two</td></tr><tr><td>one</td><td>two</td></tr></tbody></table>