Closed Bug 1814220 Opened 2 years ago Closed 2 years ago

Allow TextLeafRange API to ignore list item markers

Categories

(Core :: Disability Access APIs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

Attachments

(1 file)

In MacOS/WebKit the TextMarker behaves like a caret and skips generated content. It is debatable whether this is good for :before/:after content that could be integral to the text content of a page. But for list item markers it does improve ergonomics when bullets aren't included in the TextMarker order. To simplify the mac platform code I propose adding this as an option in FindBoundary.

This will ultimately be tested in MacOS tests, but I think we are reaching the point where an XPCOM interface for TextLeafPoint/TextLeafRange would be good so we could get proper coverage.

Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/73b8e9cfd765
Allow ignoring list item markers in TextLeafPoint::FindBoundary. r=Jamie
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: