Closed Bug 119682 Opened 23 years ago Closed 22 years ago

Copy/Paste sometimes outputs image urls

Categories

(Core :: DOM: Serializers, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 66035
Future

People

(Reporter: vanbalen, Assigned: harishd)

Details

(Whiteboard: DUPME)

Attachments

(4 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020107
BuildID:    2002010708

When copying and pasting headers from Yahoo! Mail into a mozilla text area, I've
recently started seeing fragments of html tags pasted along with the text of the
headers (yahoo recently changed the way they html format the headers in their
messages).

In this particular case, I'm seeing the following quasy-tag pasted with the text:

<http://us.i1.yimg.com/us.yimg.com/i/space.gif>

The only place this URL appears in the source (see forthcoming attachment) is in
the following img tag:

<img src="http://us.i1.yimg.com/us.yimg.com/i/space.gif" border = 0 width=1
height=1>

Apparently, mozilla is stripping the "img src=" and extra attribs from the tag
but not the URL which it proceeds to paste along with the text, totally baffling
new users :-)

Reproducible: Always
Steps to Reproduce:
1. Open recent yahoo mail message (messages older than about a week probably
won't exhibit this bug), showing headers (I will attach a testcase)
2. highlight the header text and hit ctrl+c then paste the text in a text box
with ctrl+v
3. Alternately, highlighting the text and pasting it in the text box using the
middle mouse button, should produce the same results.
4. Notice that some of the underlying html source has been pasted along with the
text.

Actual Results:  html source, which isn't visible on the web page, is pasted
along with the visible text.

Expected Results:  Only the visible text, which was highlighted/copied by the
user, should be pasted.
Attached file large testcase
Attached file simplified testcase
Target Milestone: --- → mozilla1.2
Try a copy/paste with Item 2 - it gets (without quotes)
"# How do I get going in physical mode? "

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523
Priority: -- → P3
Target Milestone: mozilla1.2alpha → Future
--> jfrancis
Assignee: kin → jfrancis
over to akkana to make sure she sees my question - feel fre to reassign.

it sounds to me like the plaintext serializer isn't using alt text for images?
Assignee: jfrancis → akkana
This is probably a dup of another serializer bug, but I can't seem to find it. 
This isn't html source -- look again.  It's that it's enclosing urls of images
in angle brackets.  We should not be doing this in copy/paste (unformatted)
mode, and if we really are, that part might be a new bug (the existing bug
complains about these tags in formatted output, not copy/paste).

I'd like to cc Tanu too, but bugzilla isn't recognizing her last address -- has
it changed again?
Assignee: akkana → harishd
Component: Editor: Core → DOM to Text Conversion
Whiteboard: DUPME
I stopped seeing the problem I reported originally a couple months after filing
the bug.

I don't know if the problem whiplash@pobox reported is the same or not.
akk is right.

*** This bug has been marked as a duplicate of 66035 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Summary: Copy/Paste sometimes grabs scraps of html source tags along with visible text → Copy/Paste sometimes outputs image urls
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: