IAccessible2: Not possible to select to caret when caret is outside of current object

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
3 years ago
3 years ago

People

(Reporter: chris, Unassigned)

Tracking

(Blocks: 1 bug)

37 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36

Steps to reproduce:

With a document as follows:

<!DOCTYPE html>
<html>
    <body>
        <div contenteditable="true">Test <a href="#">selection</a></div>
    </body>
</html>

I obtain the two IAccessibleText objects as:
  iaText1 (which has the text "Test \uFFFC"), and
  iaText2 (which has the text "selection")

I want to create a selection from an offset in iaText1 to an offset in iaText2:

iaText2.setCaretOffset(2);
iaText1.setSelection(0, 2, IA2_TEXT_OFFSET_CARET);


Actual results:

Got E_INVALIDARG HRESULT.


Expected results:

I would like this to have set the selection to "st sel"

Some discussion here:
https://groups.google.com/forum/?hl=en#!topic/mozilla.dev.accessibility/_6-iZrNtQrg
Blocks: 640591
Component: General → Disability Access APIs
You need to log in before you can comment on or make changes to this bug.