Closed Bug 4060 Opened 26 years ago Closed

Events on Select[List] does not work properly.


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

Windows 95





(Reporter: desale, Assigned: joki)



Events on Select[List] does not work properly.
Providing information to simulate the problem.

Product: Seamonkey.[apprunner]
Build Date: 03/17/99
Platform: PC [Windows-95]

Steps to Reproduce:
1] Please copy the code I'm providing. Save as HTML file.
2] Open this HTML file in apprunner.
3] This file will provide you two objects. Upper one is called test object
and lower one is called result text box.
4] Try to click on test object.
5] Then try to click on result test box.
6] Again click on test object.


<title>Test Page</title>

<SCRIPT LANGUAGE="JavaScript1.1">

function report(text)
var value=document.workform.result.value;
var msg= value+ " " +text;

<FORM NAME="workform" >
<h4>This simple test will list the events which are occuring in test

Test Object:<SELECT multiple NAME="username" SIZE=4 onClick="report('Click()');"
onBlur="report('Blur()');" onSelect="report('Select()');"
         <OPTION VALUE="Option1">Option1
         <OPTION VALUE="Option2">Option2
         <OPTION VALUE="Option3">Option3
         <OPTION VALUE="Option4">Option4
Result Text Box<INPUT TYPE=text NAME="result" SIZE=80>
<input type="reset" value="Reset">
<h5>conclusion: onClick of the test object only onclick() and onfocus() events
should occur.
<br>Where as Blur() event is also occuring. onSelect is not working.</h5>

Expected Results: On clicking on test object, result test box should show only
two events that are occuring Click() and Focus(). It should not show Blur() as
well as change() event.

Actual Results: On clicking on test object, result text box is showing all
events Click(), Focus(), Blur() change().

Description: On click all events are occuring.
Priority: P3 → P2
Target Milestone: M3
Target M3 per request.
QA Contact: 3847 → 4616
Actually from testing this in 4.0, the change event should be occurring.
The base event handling for all of these works correctly now.  There are still
some basic blur/focus issues but none of them are specific to these form types.
I'll handle those fixes through other bugs.  But the test cases described here
are correct.
Yes Change event should be occuring while clicking on select first time since
its changing the value of it.
Bug is verified, and marking as verified.
Blocks: robin's
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.