Closed
Bug 202893
Opened 21 years ago
Closed 21 years ago
button will not focus from (or after?) the button blur event
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: stephen, Assigned: asa)
Details
Attachments
(1 file)
281 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4a) Gecko/20030401 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4a) Gecko/20030401 Simple testcase: <html><body><form method=post action=""> <input type="text" name=""> <input id="foo" type="button" value="foo" onblur="alert('now');this.focus()"> </form> <a href="#" onclick="document.getElementById('foo').focus();return false">Focus it</a></body></html> Test 1 - shows problem (with or without the alert in the code): Click on the foo button, then into textbox - alerts, but does not focus back to button Test 2 - Test of basic focus logic (OK) As the focus is now (incorrectly) on the textbox, click on the "focus" anchor - focus goes back to button as a result of the focus() (correctly) Test 3 - Wierd: With the focus now back on the foo button, click on the "focus" anchor again - this time it does not focus, though this is to do with the alert I think. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: The this.focus() should have kept the focus on the button (made it modal) Works as expected in IE, does not work as expected in N6/N7/Moz 1.4/Phoenix (recent daily)
Updated•21 years ago
|
Component: Browser-General → DOM Events
Summary: button will not focus from (or after?) the button blur event → button will not focus from (or after?) the button blur event
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
*** This bug has been marked as a duplicate of 53579 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•