Closed Bug 366720 Opened 18 years ago Closed 14 years ago

Double-click on margin selects no text (with float and padding)

Categories

(Core :: DOM: Selection, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: uriber, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(2 files)

Attached file testcase
In the URL above, double-click anywhere on the margin to the left of the side bar, or on the right margin of the page, across to the sidebar. Notice that the entire page is selected. This is a regression from bug 316281. It's somewhat similar, but not identical, to bug 334371. The minimal testcase involves a div, within a floated div, within a div that has some padding (the amount and position of the padding don't matter).
Blocks: 363198
Starting from some time between 2007-06-16 and 2007-06-23, double-clicking no longer selects the entire paragraph. However double-click-drag (i.e., when the mouse is moved before releasing the second click), still selects everything.
Using Firefox 2008041104 on Linux, nothing is selected when double-clicking on any side in the first testcase. That doesn't seem right, I expect the same behaviour as in Testcase #2, i.e. the closest word should be selected.
Summary: Double-click on margin selects entire text (with float and padding) → Double-click on margin selects no text (with float and padding)
WFM, if I understand this correctly. Double click selects text (a word) I would expect it to, and no more. (I still see bug 334371) Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3) Gecko/20090305 Firefox/3.1b3
Assignee: selection → nobody
QA Contact: selection
still WFM Mozilla/5.0 (Windows; Windows NT 6.0; rv:2.0b3pre) Gecko/20100723 Minefield/4.0b3pre
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: