Closed Bug 1563704 Opened 5 years ago Closed 2 months ago

When selecting one range in light DOM and one range in Shadow DOM, only one of them is visually highlighted

Categories

(Core :: DOM: Selection, defect, P2)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1455893

People

(Reporter: mbrodesser-Igalia, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

STR:
Open the attached example, which selects three ranges (two light DOM, one Shadow DOM) .

Expected:
all three ranges are visually highlighted.

Actual:
only the range added last to the selection is visually highlighted.

Changing the order of adding the ranges determines which one is highlighted after all have been added.

I'm aware that the Selection API per spec doesn't support selecting Shadow DOM nodes. However, fixing this issue should pave the way for supporting selection across Shadow DOM boundaries. Not necessarily via the Selection API, but for an end-user visually selecting text.

Assignee: nobody → mbrodesser
Priority: -- → P2

Won't have time to work on this soon.

Assignee: mbrodesser → nobody
Severity: normal → S3

This is now fixed in Nightly Firefox

Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 1455893
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: