Closed Bug 559728 Opened 10 years ago Closed 4 years ago

Caret is invisible and IME enabled state is not modified when a focused editor's type attribute of <input> is changed to "text"

Categories

(Core :: DOM: UI Events & Focus Handling, defect, minor)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: masayuki, Unassigned)

References

()

Details

(Keywords: inputmethod)

Attachments

(1 file)

Similar to bug 488420. When type attribute is changed, the frame is recreated for the new widget. But if the <input> element is focused, the initialization isn't done, e.g., caret isn't visible on following case:

> data:text/html,<body onload="var i=document.getElementById('i'); i.focus(); i.setAttribute('type', 'text');"><input id="i" type="button" value="value"></body>

And also IME state isn't modified to new widget.
Attached file similar situation
Both testcases work for me on Nightly.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.