Closed
Bug 707958
Opened 14 years ago
Closed 5 years ago
Pasting multiple table rows into a contenteditable area, combines all the pasted content into one table row
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 1433073
People
(Reporter: monahant, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [h2review-noted])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243
Steps to reproduce:
To Reproduce:
- Load the attached HTML file in Firefox
- Using the mouse select the first 2 rows of the table.
- Use Ctrl + C to copy the table rows.
- Place the cursor after 'More Sample Text' and use Ctrl + V to paste the table rows.
Actual results:
The pasted content was pasted as one table row. Inspecting the DOM, the HTML for the pasted content is:
<table cellspacing="1" cellpadding="1" border="1" dir="ltr" _moz_dirty=""><tbody><tr><td>a</td><td>b</td><td>c</td><td>d</td></tr></tbody></table>
Expected results:
The pasted content should have been pasted as 2 table rows:
<table cellspacing="1" cellpadding="1" border="1" dir="ltr" _moz_dirty=""><tbody><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></tbody></table>
Using a clipboard inspector, it appears that the 2 table rows are correctly represented in the clipboard content:
Version:0.9
StartHTML:00000172
EndHTML:00000300
StartFragment:00000206
EndFragment:00000264
SourceURL:file:///C:/Documents%20and%20Settings/ieu71065/Desktop/doc.html
<html><body>
<!--StartFragment--><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr><!--EndFragment-->
</body>
</html>
Reporter | ||
Comment 1•14 years ago
|
||
A further point to note is that running the same test case in FF3.6 produces different HTML which includes nested tr tags:
<table dir="ltr" border="1" cellpadding="1" cellspacing="1">
<tbody><tr><tr><td>a</td><td>b</td></tr><tr><td>c</td><td>d</td></tr></tr></tbody>
</table>
Updated•14 years ago
|
Attachment #579322 -
Attachment mime type: text/plain → text/html
Updated•14 years ago
|
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•6 years ago
|
Blocks: editor-blink-compat
Updated•6 years ago
|
Priority: -- → P3
Version: 8 Branch → Trunk
Comment 3•5 years ago
|
||
This seems to be a Windows-only bug.
Updated•5 years ago
|
Whiteboard: [h2review-noted]
Blocks: 1636028
Couldn't reproduce the issue on Windows. I think it was fixed with bug 1433073.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•