Closed
Bug 141853
Opened 23 years ago
Closed 23 years ago
Shouldn't preserve newline character when pasting into single line text box
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
People
(Reporter: m, Assigned: samir_bugzilla)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417
BuildID: 2002041711
The browser lets you paste a multi-line chunk of text into a single line text
box, whilst preserving newline characters. Single line text boxes (i.e. <input
type=text ...>) shouldn't be allowed to contain multiple lines.
This could confuse certain CGI scripts / form handlers.
Reproducible: Always
Steps to Reproduce:
1. Go into a text editor and type something like:
line1
line2
line3
2. Copy that to the clipboard.
3. Find a single-line text box on a webpage, e.g. at
http://bugzilla.mozilla.org/quips.cgi
4. Paste into that box (e.g. right-click / Paste, or middle-click in Linux).
Actual Results: Only the last line is visible; using the arrow keys or
backspace in the box you can see that the other lines are present "off the top"
of the box. I.e. the newline character has been preserved when pasting.
Expected Results: Mozilla should remove newline characters when pasting into
single-line text boxes, so e.g. the text would be pasted as "line1 line2 line3".
![]() |
||
Comment 1•23 years ago
|
||
Duplicate of "Text <input> allows multiple lines to be pasted"
*** This bug has been marked as a duplicate of 77932 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•