1. Start NVDA or Jaws (any version).
2. Load this URL:
data:text/html,
<textarea cols="3">
abcdef
</textarea>
3. There should be three lines in the textarea:
"abc"
"def"
<blank line>
4. Position the caret on the first line and press End.
5. Read the current line using Insert+Up or corresponding laptop layout key.
Expected:
"abc" is read.
Actual:
"def" is read instead.
Cause:
Affinity is not maintained when IAccessibleText::get_textAtOffset(...) is called with a start offset that is equal to the caret offset. Since the start offset is the same as the location of the caret and since the location of the caret is incomplete without affinity, it should be retrieved and passed to AXPosition.
Comment 1 by bugdroid1@chromium.org
, Nov 22 2017