Open Bug 1886028 Opened 1 year ago Updated 1 year ago

Investigate a better design for shadow dom selection

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

People

(Reporter: sefeng211, Unassigned)

References

Details

Current design adds a member variable called mCrossBoundaryRange in nsRange to keep track of the real endpoints (a.k.a, endpoints that can cross the boundary). And we return the collapsed endpoints (nsRange::mStart, nsRange::mEnd) when needed.

Ideally, we don't need to keep the collapsed endpoints, we can always keep the real endpoints. We can use a bool or something to indicate that this range is collapsed and return a collapsed endpoint when needed.

You need to log in before you can comment on or make changes to this bug.