Closed Bug 276404 Opened 20 years ago Closed 19 years ago

copying text with line break and then pasting in form text box stops pasting at newline

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 249404

People

(Reporter: danielbarclay.oss, Assigned: bugs)

Details

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

If you copy text including a line break (an HTML paragraph boundary?)
and then try pasting into a text box, only the text before the break is
pasted.  

Even if it doesn't make sense to paste the line/paragraph break itself,
the text after the break should still be pasted.

Reproducible: Always

Steps to Reproduce:
1.  On an HTML page, select from the last word or two of one paragraph to
    the first word or two from the next paragraph.  For example, on this
    Bugzilla entry page
    (at https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&format=guided
    ), select from "You suck!" to "Good example", right-click, and select
    "Copy."
2.  Paste the copied text into a single-line text box.  For example, go to
    the page currently at http://www.google.com/firefox, click in the text
    box, right-click and select "Paste."
3.  Notice that Firefox (or Mozilla Suite) pasted "You suck!" instead of
    pasting (approximately) "You suck! Good example."

Actual Results:  
See step 3.

Expected Results:  
See step 3.

Mozilla Suite 1.7.3 (Mozilla 1.7.3
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910)
and Firefox 1.0 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.) both exhibit the problem.
Easier way to reproduce:
$ cat testwrap.html
<html>
	<body>
		<input name="testwrap" type="text" value="one two
three
four " >
	</body>
</html>

Now, view testwrap.html in browser and it will not render properly.  In IE, it does.

-Dustin Breese


(In reply to comment #0)
> User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3)
Gecko/20040910
> Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3)
Gecko/20040910
> 
> If you copy text including a line break (an HTML paragraph boundary?)
> and then try pasting into a text box, only the text before the break is
> pasted.  
> 
> Even if it doesn't make sense to paste the line/paragraph break itself,
> the text after the break should still be pasted.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.  On an HTML page, select from the last word or two of one paragraph to
>     the first word or two from the next paragraph.  For example, on this
>     Bugzilla entry page
>     (at https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox&format=guided
>     ), select from "You suck!" to "Good example", right-click, and select
>     "Copy."
> 2.  Paste the copied text into a single-line text box.  For example, go to
>     the page currently at http://www.google.com/firefox, click in the text
>     box, right-click and select "Paste."
> 3.  Notice that Firefox (or Mozilla Suite) pasted "You suck!" instead of
>     pasting (approximately) "You suck! Good example."
> 
> Actual Results:  
> See step 3.
> 
> Expected Results:  
> See step 3.
> 
> Mozilla Suite 1.7.3 (Mozilla 1.7.3
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910)
> and Firefox 1.0 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
> Gecko/20041107 Firefox/1.) both exhibit the problem.
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → EXPIRED
This bug (at least the behavior I described in the original report) still exists
in Mozilla 1.7.12 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) 
Gecko/20050915).
Status: RESOLVED → UNCONFIRMED
Resolution: EXPIRED → ---

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