Closed
Bug 227558
Opened 21 years ago
Closed 21 years ago
Scrolling select box triggers onchange event handler
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 207637
People
(Reporter: edwin, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
Try the following code. First select an option. The alert is triggered. Good.
Then scroll the select box. The alert is again (and each time) triggered. This
is not good.
<html>
<body>
<h2>Test</h2>
<p>First select an option, then scroll the select box.</p>
<select size="5" onchange="alert('changed')">
<option>a</option>
<option>b</option>
<option>c</option>
<option>d</option>
<option>e</option>
<option>f</option>
<option>g</option>
</select>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
From http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.3
The onchange event occurs when a control loses the input focus and its value has
been modified since gaining focus. This attribute applies to the following
elements: INPUT, SELECT, and TEXTAREA.
Comment 1•21 years ago
|
||
Edwin, you are using a 3+ months old build. The guidelines
"bug writing guidelines"
http://www.mozilla.org/quality/bug-writing-guidelines.html
recommend a 3 days old build for reporting bugs.
"be sure that you've reproduced your bug using a build released within the past
three days. Our development process moves at lightning speed, and the bug you've
found may already have been fixed."
Also, you should have searched for a duplicate. Here, bug 207637 description
meets exactly this bug description. If the problem was still happening with a
recent build, then requesting to reopen bug 207367 was the thing to do.
Finally when you want to submit a reduced testcase (and this is welcomed), best
is to use the "Create a New Attachment" link to do this.
FWIW, your testcase WFM with Mozilla 1.5 build 20031007, XP Pro SP1.
Comment 2•21 years ago
|
||
*** This bug has been marked as a duplicate of 207637 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•