Closed Bug 252186 Opened 20 years ago Closed 20 years ago

When multiple ranges are added to the selection for the same line, the entire line appears selected instead of only the individual selections.

Categories

(Core :: DOM: Selection, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 220157

People

(Reporter: mbolin, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040615 Firefox/0.9
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

[Taken from the URL of the example] If your screen is wide enough so that the
first sentence fits on one line, then clicking the link above will highlight the
entire line; however, if your window is narrow enough that the two instances of
Mozilla appear on separate lines, then clicking the link will highlight the two
instances independently, as desired.

Reproducible: Always
Steps to Reproduce:
1. Go to http://www.bolinfest.com/mozilla/index.html
2. Make your screen wide enough so that the first sentence fits on one line
3. Click the hyperlink
4. Note that the entire line is highlighted
5. Clear the highlight.
6. Make your screen narrower so the first and last word of the sentence appear
on separate lines.
7. Click the hyperlink.
8. Note that there are now two, independent selections, as desired.
Actual Results:  
The full line was highlighted.

Expected Results:  
The individual selections should have been highlighted.
Attached image Screenshot
This screenshot is what I see after re-maximizing my Mozilla window if I
clicked the "highlight" link when the sentence was on two lines.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Assignee: traversal-range → selection
Component: DOM: Traversal-Range → Selection
QA Contact: ian
Probably the same bug as bug 220157.
Yes it is.

*** This bug has been marked as a duplicate of 220157 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: