Closed Bug 109962 Opened 23 years ago Closed 22 years ago

<input onblur="this.focus()"> doesn't work

Categories

(Core :: DOM: Events, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 53579
mozilla1.2alpha

People

(Reporter: han.holl, Assigned: saari)

References

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5+) Gecko/20011111
BuildID:    2001111109

HTMLInputElement.focus() doesn't seem to work at all.
Simple test is something like:
<input type="text" onblur="this.focus()">

Reproducible: Always
Steps to Reproduce:
1.Type some characters and click outside the text field
2.
3.

Actual Results:  Focus lost

Expected Results:  Focus should remain in (or return to) the field.
Works in IE and (differently) in NS 4.77 and Opera (checking my sanity).
Confirming issue as described.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Layout is not a good component for this. Since onBlur="this.focus()" is failing,
I'll try DOM (though it may be an event issue, or somethig else, what do I know?)
Component: Layout → DOM Events
really reassign...
Assignee: attinasi → joki
QA Contact: petersen → vladimire
*** Bug 120995 has been marked as a duplicate of this bug. ***
*** Bug 107988 has been marked as a duplicate of this bug. ***
Interesting, but not in 1.0 timeframe
Assignee: joki → saari
Target Milestone: --- → mozilla1.2
also happens on windows 98
OS: Linux → All
dup of bug 53579?
Summary: Text input field doesn't get focus after HTMLInputElement.focus() → <input onblur="this.focus()"> doesn't work
yes.

*** This bug has been marked as a duplicate of 53579 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: