Closed Bug 462970 Opened 16 years ago Closed 14 years ago

textarea, input tag disappears (vanishes) when copy & pasted on the border.

Categories

(Core :: DOM: Selection, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 424627

People

(Reporter: oop.coder, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

588 bytes, text/html; charset=Shift_JIS
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3

This happens even on this bug report page.
This problem should be Firefox related, not how the webpage is written.
How I found this problem was when I was copy & pasting text from one place to another.
Since I had many to copy & paste, I was copying from left and paste on the right very quickly.  Sometimes, I miss clicking the textarea I need to paste on, and just click on the border and paste.   Usually this doesn't and shouldn't do anything, I just clicked on the edge, but when this problem occurs, the textarea/input area disappears right after the pasting.
Also, very rarely, the pasting text will be implanted in the html just as text.


Reproducible: Sometimes

Steps to Reproduce:
1.copy some text, whatever is fine.  can be just some lines.
2.try clicking the edge of input/textarea and paste(use "ctrl+v" to paste)
3.sometimes the input/textarea disappears, like 1 out of 10-20 tries
Actual Results:  
input/textarea disappears

Expected Results:  
shouldn't remove the elements
Have you also tested it in safe-mode? This to exclude extension influences.

> Also, very rarely, the pasting text will be implanted in the html just as text.

I believe this is a known bug.
Yes, this does happen in safe-mode as well.   I checked extensions (add-ons) and they were all deactivated.
I checked the reported bugs before I posted, but I didn't see one similar to this problem.   Do you know the bug #?
I am able to consistently reproduce this bug.  
1) go to any page with an input box (I used google.com)
2) type some text in the input box ("asdf").  The cursor should be blinking to the right of the last letter you typed.
3) Ctrl+click on the top border of the input box.  This is the one pixel exactly where the cursor changes from default to the text cursor.  The blinking cursor should disappear.
4) Hit any letter key.  The input box will disappear.

Also note that if you do not type any text in the input box in step 2 then proceed through the steps, the letter you type in step 4 will appear just outside to the left of the input box.
I think this bug has to do with "CTRL-click table selection" (Table cell selection).
When an input box is inside TD element, this happens.  For instance, if I try this at http://www.google.com/ since the input box is in a TD element, the bug occurs, Whereas the same doesn't seem to happen at http://www.google.co.jp/, since the input box is not in a TD element.
Attached file testcase (obsolete) —
Confirming.
Status: UNCONFIRMED → NEW
Component: General → Selection
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
QA Contact: general → selection
Version: unspecified → Trunk
OS: Windows XP → All
Hardware: x86 → All
Severity: normal → major
(In reply to comment #2)
> I checked the reported bugs before I posted, but I didn't see one similar to
> this problem.   Do you know the bug #?

I was referring to a rather old bug; Bug 339975.
There is a more recent possibly related one now, Bug 424627.
Attached file testcase2
This testcase is more similar to original report.
Comment on attachment 367957 [details]
testcase

I can more consistently reproduce this in attachment 368203 [details] following steps there.
Attachment #367957 - Attachment is obsolete: true
aaa
Sorry for the "aaa" comment.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
No longer depends on: 424627
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: