Open Bug 292327 Opened 19 years ago Updated 3 years ago

Wrong event.target for keyboard events in iframe with designMode=on

Categories

(Core :: DOM: Editor, defect, P5)

x86
Windows XP
defect

Tracking

()

People

(Reporter: bugzilla.mozilla.org-3, Unassigned)

References

Details

(Keywords: helpwanted, testcase)

Attachments

(1 file)

When typing in an IFRAME with designMode=on, the target property of keyboard
events is the HTML node and not the node at the current caret position.

Steps to reproduce:
1. Open attached testcase
2. Click in the red square.
3. Enter some letters on the keyboard

Expected results:
The log should contain "keydown@iframe:DIV".

Actual results:
The log contains "keydown@iframe:HTML".


The problem exists for keydown, keyup and keypress events. For mousedown and
mouseup it works as expected.
Attached file Testcase
Keywords: testcase
Presumably, we just dispatch key events to whatever it is that has focus...
Yeah, I guess we should dispatch to wherever the caret is.
QA Contact: bugzilla → nobody
Keywords: helpwanted
QA Contact: nobody → editor
Assignee: mozeditor → nobody
Blocks: 424615

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: