Note: There are a few cases of duplicates in user autocompletion which are being worked on.

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

REOPENED
Unassigned

Status

()

Core
DOM
REOPENED
5 years ago
4 months ago

People

(Reporter: Martijn Wargers (dead), Unassigned)

Tracking

({testcase})

Trunk
x86
Windows 7
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

5 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.
(Assignee)

Updated

4 years ago
Component: DOM: Other → DOM
Product: Core → Core
(Reporter)

Updated

4 months ago
Status: NEW → RESOLVED
Last Resolved: 4 months ago
Resolution: --- → WORKSFORME

Updated

4 months ago
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
You need to log in before you can comment on or make changes to this bug.