Closed
Bug 585463
Opened 15 years ago
Closed 15 years ago
When (re-)creating nsTextControlFrame from onfocus handler, the caret doesn't show
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
DUPLICATE
of bug 536421
People
(Reporter: mounir, Unassigned)
Details
Some attribute changes in nsHTMLInputElement requires frame re-creation (see nsHTMLInputElement::GetAttributeChangeHint). If you do one of this change in a onfocus handler and this change require a (re-)creation of nsTextContralFrame, the text field does not seem focused because the caret isn't showed.
STEP TO REPRODUCE:
1. Open: data:text/html,<input type='button' onfocus='this.type="text";'>
2. Click on the button
ACTUAL RESULT:
- the text field doesn't seem focused (the caret doesn't show)
EXPECTED RESULT:
- the text field should look focused (the caret should be showed)
NOTES:
- the text field is actually focused (document.activeElement returns the input element)
- this bug is present in 3.6.8 so it doesn't come from Ehsan changes in nsTextControlFrame
These bugs may be related to this issue:
bug 404111
bug 133771
bug 568441
bug 112777
bug 130542
bug 246576
bug 258851
bug 439982
bug 559728
In addition, bug 553097 relies on a correct behavior for some reftests.
Comment 2•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME?
You need to log in
before you can comment on or make changes to this bug.
Description
•