Closed Bug 1468956 Opened 7 years ago Closed 2 months ago

IAccessibleText::get_textAtOffset(...,IA2_TEXT_BOUNDRY_LINE,...) returns incorrect values for RTL content.

Categories

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

60 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mike.hill, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file test html document
If you have some RTL text (Arabic/Hebrew) that is wrapped across multiple lines because it's longer than the width of the element and the screen reader wants to break this into physical screen lines, it would normally call IAccessibleText::get_textAtOffset(...,IA2_TEXT_BOUNDRY_LINE,...) to get each physical line. This doesn't work correctly for RTL text. The function returns S_OK, but startOffset and endOffset return the bounds of 2 physical lines of text instead of 1. See attachment for simple test case html document.
Blocks: texta11y
Priority: -- → P3
Severity: normal → S3

This seems to be fixed from what I can tell, probably by the introduction of TextLeafPoint and fixes like bug 1897597. Please reopen if the problem persists.

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

Attachment

General

Creator:
Created:
Updated:
Size: