caretPositionFromPoint returns different offset in empty iframe as the selection.focusOffset when clicking on it

REOPENED
Unassigned

Status

()

defect
P5
normal
REOPENED
7 years ago
2 months ago

People

(Reporter: martijn.martijn, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows 7
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

()

Reporter

Description

7 years ago
See testcase, which is from bug 681387.


Clicking on the iframe results in:
clientX:152 clientY:164
selection.focusNode: [object HTMLPreElement] selection.focusOffset:0
selection.anchorNode: [object HTMLPreElement] selection.anchorOffset:0
caretpositionfrompoint.offsetNode:[object HTMLHtmlElement] caretpositionfrompoint.offset:0

caretpositionfrompoint.offsetNode should be equal to selection.focusNode, which is not the case here.
Component: DOM: Other → DOM
Product: Core → Core
Reporter

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

Updated

11 months ago
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Product: Core → Core
You need to log in before you can comment on or make changes to this bug.