Bug 24895
Summary: | Cannot paste entire table row into table | ||
---|---|---|---|
Product: | WebKit | Reporter: | Annie Sullivan <sullivan> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | eric, jparent, michaelthomas |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 | ||
URL: | http://www.mozilla.org/editor/midasdemo/ |
Annie Sullivan
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>
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |