Closed Bug 1660303 Opened 8 months ago Closed 8 months ago

List bullets don't work well with mac text api

Categories

(Core :: Disability Access APIs, defect, P2)

All
macOS
defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

(Whiteboard: [mac2020_1])

Attachments

(1 file)

The mac text API should not include list bullets in its text interface.

The plot thickens. Safari has some interesting, arguably inconsistent, behavior I'm inclined to replicate it in Firefox.
For the given markup: data:text/html,<ul><li>hello</li><li>world</li></ul>
If you created two markers: a = markerAtIndex(0) and b = markerAtIndex(4) you would get some interesting numbers.
The "index" value of b is 4. The length of the range from a to be is also 4. BUT the length of the text value of that range is 6 as it includes the bullet ("* hell").

We need to navigate past bullets when moving markers by character or word,
but we need to still include bullets when retrieving the string of a given
marker range.

Depends on D87797

Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6e22b4fd2ee0
Remove list bullets from text marker navigation. r=Jamie
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.