Closed Bug 283479 Opened 20 years ago Closed 20 years ago

"special" characters copied from xmp sections copy and paste as HTML entities

Categories

(Core :: DOM: Serializers, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 64495

People

(Reporter: benjamin, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

In pages that include xmp sections (like http://strautin.org/xmp.html), any
"special" characters that are included in the xmp section, like &, <, and >,
render as expected, i.e., as &, <, and >.  However, when they are copied and
pasted to another application, their corresponding HTML Entities are pasted
instead of the characters, i.e., &gt;, &lt;, and &amp;.

Reproducible: Always

Steps to Reproduce:
1. Open a page with an xmp section containing some "special" characters
2. Copy the text from the xmp section
3. Paste the test to another application

Actual Results:  
The HTML Entities that would represent the "special" characters displayed in the
browser are pasted.  From the http://strautin.org/xmp.html example, the results
are &lt; &gt; &amp;

Expected Results:  
The characters displayed in the browser should be pasted.  From the
http://strautin.org/xmp.html example, the results should be 

>
<
&
Assignee: firefox → dom-to-text
Component: General → DOM to Text Conversion
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general
Version: unspecified → Trunk
Duplicate of bug 64495, but I have no rights to resolve this

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