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

REOPENED
Unassigned

Status

()

P5
normal
REOPENED
6 years ago
8 months ago

People

(Reporter: martijn.martijn, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows 7
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

6 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

8 months ago
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.