Closed Bug 131880 Opened 22 years ago Closed 22 years ago

[experimental build] onkeydown and onkeypress not working as desired for textarea form control

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: madhur, Assigned: joki)

Details

Attachments

(1 file)

win2000 - experimental build put together byu tom pixley on 2002-03-18

1. open attached testcase.
2. enter something in the textarea controls.

expected:
in the first textarea control - you should see only "onkeypress event " 
in the secondt textarea control - you should see only "onkeydown event "

actual: 
you will notice that an extra character, other than expected, will be displayed 
each time you type something in the control.

I do not see this happening in 03/18 commercial build.
Attached file testcase
Nope, these are both good.  The functionality change is intentional so that the
character is enterered after script handlers have all fired.  Thus the script
handler sets the value and then the browser enters the new character.  The
character entry can now be cancelled as a result by calling preventDefault()
within the handler.  IE has the same event sequence.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
ok. 

verified invalid.
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: