Closed
Bug 66478
Opened 24 years ago
Closed 24 years ago
onBlur on a select list goes "loopy"
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: ssulman, Assigned: joki)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14-12 i686; en-US; m18) Gecko/20001128
BuildID: 2000112812
A select tag with onBlur set to call a JavaScript function containing a confirm
dialogue box, causes a loop which repeatedly opens the dialogue box when the
select list loses focus. Mozilla has to be terminated to get out of the loop.
Reproducible: Always
Steps to Reproduce:
Here's some HTML to reproduce the problem:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD><TITLE> </TITLE></HEAD>
<BODY BACKGROUND="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF"
ALINK="#0000FF" VLINK="#808080">
<h2>Demonstrate JavaScript onBlur problem</h2>
<script language="JavaScript">
<!--
function selBlur() // called from an onBlur of the drop-down list
{ if (confirm("We're testing confirm dialogues called from an onBlur." +
" Click OK or " +
"\\ncancel (duh!)."))
{ alert("That was OK");
}
else
{ alert("You cancelled on me!");
//document.newBug.client_id.focus();
}
}
//-->
</script>
<p>Here's the form:</p>
<form name=selector type=post action=testBlur.html>
<table>
<tr>
<td>Here's a select list:<td>
<td><select name=testselect onBlur="selBlur();">
<option value=1 selected>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option value=4>Four</option>
<option value=5>Five</option>
<option value=6>Six</option>
</select>
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
Actual Results: Repeatedly opens the confirm dialogue after any other X event.
Expected Results: Just once is enough!
Works as advertised in IE5.
Netscape 4.72 also demonstratest the problem, but not in an automatic loop: the
dialogue reappears when you click one of it's buttons.
Comment 1•24 years ago
|
||
Confirmed with Mozilla binary 2001012109 on WinNT.
Changing OS from "Linux" to "All".
Browser, not engine --> Event Handling
Assignee: rogerl → joki
Status: UNCONFIRMED → NEW
Component: Javascript Engine → Event Handling
Ever confirmed: true
OS: Linux → All
QA Contact: pschwartau → lorca
Comment 2•24 years ago
|
||
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
Assignee | ||
Updated•24 years ago
|
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 3•24 years ago
|
||
This is a dupe of one I'm already working on.
*** This bug has been marked as a duplicate of 67317 ***
Updated•23 years ago
|
QA Contact: madhur → rakeshmishra
Updated•22 years ago
|
QA Contact: rakeshmishra → trix
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
•