Open Bug 1163713 Opened 10 years ago Updated 2 years ago

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

Categories

(Core :: Disability Access APIs, defect)

37 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: chris, Unassigned)

References

(Blocks 1 open bug)

Details

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: caretsela11y
Component: General → Disability Access APIs
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.