setCapture interacts badly with selection

NEW
Unassigned

Status

()

Core
Event Handling
8 years ago
8 years ago

People

(Reporter: tnikkel, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
Created attachment 422684 [details]
testcase

In the testcase try clicking and dragging on the blue div (so that setCapture is active on the div) then drag to select text below. I can select text from the first two divs but not the third.

IE seems to deny selection while a setCapture is active.

Comment 1

8 years ago
When I click on the blue box and drag down, I get the selection of the first two lines of text and then the selection of the numbers as they appear.
(Reporter)

Comment 2

8 years ago
Hmm, now using the latest nightly I can select the numbers, but only the first line.

Comment 3

8 years ago
> In the testcase try clicking and dragging on the blue div (so that setCapture
> is active on the div) then drag to select text below. I can select text from
> the first two divs but not the third.

 this happens because you are destroying selection with setting innerHTML, appendChild works fine
> IE seems to deny selection while a setCapture is active.
yes selection selection shouldn't go out of element while a setCapture is active.
You need to log in before you can comment on or make changes to this bug.