Open Bug 541011 Opened 15 years ago Updated 2 years ago

setCapture interacts badly with selection

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect

Tracking

()

People

(Reporter: tnikkel, Unassigned)

References

Details

Attachments

(1 file)

Attached file 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.
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.
Hmm, now using the latest nightly I can select the numbers, but only the first line.
> 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.
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: