Closed Bug 188366 Opened 22 years ago Closed 20 years ago

Does not copy encoded text correctly

Categories

(Core :: DOM: Selection, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: raccettura, Assigned: mjudge)

References

()

Details

(Keywords: platform-parity)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

When selecting copying and pasting encoded text, it doesn't copy what's in the
HTML, but what the encoded text stands for.


For example:
<html><body>&#082;&#111;&#098;&#101;&#114;&#116;&#032;&#065;&#099;&#099;&#101;&#116;&#116;&#117;&#114;&#097;</body></html>



Reproducible: Always

Steps to Reproduce:
1.  Create a webppage with the html sample above
2.  Open the webpage in Mozilla
3.  Select the encoded text
4.  Try pasting it into another program, for example AIM.

Actual Results:  
Pastes "Robert Accettura"

Expected Results:  
Pasted
"&#082;&#111;&#098;&#101;&#114;&#116;&#032;&#065;&#099;&#099;&#101;&#116;&#116;&#117;&#114;&#097;"
IMO it should always copy what you see, not whatever obscure encoding behind it.
UNLESS, of course, you are copying from source view?
Is this a bug you see when you copy/paste from a view->page source window?
Forgot the obvious: WFM when copying from source view on a week old Linux build.
If I copy and paste this I should get exactly that text, unless I copy from the
view-source window.... Any chance of answering the questions from comment 1?
as per comment 1, yes, hence the component "ViewSource"
So the following steps (on Linux trunk build 2003-01-06-22):

1)  Open http://media.accettura.com/mozilla/188366.html
2)  Open view source on that page
3)  Select all the text in <body> inside the view-source window.
4)  paste it into another app.

When I do this with either a text editor or Mozilla composer the text that is
pasted is
"&#082;&#111;&#098;&#101;&#114;&#116;&#032;&#065;&#099;&#099;&#101;&#116;&#116;&#117;&#114;&#097;"

I assume you are seeing a different result?
yep
Sounds like an OS-specific clipboard issue, then.
Assignee: doron → mjudge
Component: ViewSource → Selection
Keywords: pp
These steps WFM, WinXP, 2003010908 trunk:

-Load the URL
-Select "Vuew->Page Source"
-Select the text between the <body> tags in the sourcepage
-Copy it
-Paste it into wordpad:

Pasted:
&#082;&#111;&#098;&#101;&#114;&#116;&#032;&#065;&#099;&#099;&#101;&#116;&#116;&#117;&#114;&#097;
WFM too - Win200, 20030108 build.
Did some more testing today.  Perhaps it's an AIM issue?  

I tried it in wordpad, and it worked normally.

Hmm... think I need to get 8hrs of sleep every night.  Supposed to be good for you.
worksforme with 1.7 RC2 on windows XP pasting into my text editor. Seems like
Mozilla selection and clipboard works as expected. 
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Note that chances are AIM was picking up the HTML flavor, not the TEXT flavor....
You need to log in before you can comment on or make changes to this bug.