Closed Bug 346906 Opened 18 years ago Closed 18 years ago

Hypertext::getLinkIndex return value is one off

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: parente, Assigned: aaronlev)

References

Details

(Keywords: access)

Attachments

(2 files, 1 obsolete file)

The value returned by getLinkIndex appears to be off by one. 1) Visit http://www.mozilla.org/access/unix/new-atk.html 2) Inspect the html container accessible using at-poke or a similar tool. 3) Notice the first four characters in its accessible text are embed characters. 4) Call Hypertext::getLinkIndex(0) for the first embed character. 5) Note that the at-spi return value is -1. The correct result should be 0. 4) Call Hypertext::getLinkIndex(1) for the second embed character. 6) Note that the at-spi return value is 0. The correct result should be 1. The complete result of using getLinkIndex for the first four embed characters and the first non-embed character is the following: char offset: 0 link index: -1 char offset: 1 link index: 0 char offset: 2 link index: 1 char offset: 3 link index: 2 char offset: 4 link index: -1
Blocks: newatk
Attached patch Simple patch (obsolete) — Splinter Review
Attachment #231787 - Flags: review?(nian.liu)
Attachment #231787 - Attachment is obsolete: true
Attachment #231788 - Flags: review?(nian.liu)
Attachment #231787 - Flags: review?(nian.liu)
Attachment #231788 - Flags: review?(nian.liu) → review+
Keywords: access
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #232718 - Flags: review?(pilgrim)
Attachment #232718 - Flags: review?(pilgrim) → review?(parente)
Attachment #232718 - Flags: review?(parente) → review+
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: