Closed Bug 273657 Opened 20 years ago Closed 20 years ago

Copying HTML from textbox/textarea strips tags

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 273741

People

(Reporter: jruderman, Assigned: mozeditor)

Details

(Keywords: dataloss)

Steps to reproduce:

1. Copy from the textarea in data:text/html,<textarea>&lt;li&gt;foo.
2. Paste anywhere (same textarea, Notepad, etc.)

Result: "# foo" pasted.
Expected: "<li>foo" pasted.

This regression first appeared in Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.8a6) Gecko/20041207 Firefox/1.0+.  The December 6 build did not have
this bug.
This might be caused from the Checkin for Bug 244685 at 2004-12-07 06:13
Component: Editor → Drag and Drop
I just crashed in nsCopySupport::HTMLCopy because ConvertedData was null.
Depends on: 273741

*** This bug has been marked as a duplicate of 273741 ***
Status: NEW → RESOLVED
Closed: 20 years ago
No longer depends on: 273741
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.