New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 770197 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug
Team-Accessibility

Blocking:
issue 770377



Sign in to add a comment

Offsets and nCharacters should relate to the same hypertext representation

Project Member Reported by aleventhal@chromium.org, Sep 29 2017

Issue description

All IAcccessibleText methods should use offsets and lengths that relate to the hypertext representation containing embedded object characters. They should not relate to the fully expanded text (e.g. accessible name or value).

Currently if you have hypertext like:
<embedded><embedded>

The get_nCharacters() method should return 2, but sometimes returns a large number. Similarly, IA2_TEXT_OFFSET_LENGTH should be equivalent to using nCharacters.
 
Description: Show this description
Description: Show this description
Summary: Offsets and nCharacters should relate to the same hypertext representation (was: Offsets and nCharacters refer to different text representations)
Description: Show this description
Status: Fixed (was: Unconfirmed)
Project Member

Comment 6 by bugdroid1@chromium.org, Oct 6 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/07837b02379a6d0e128a971e6a8654282b99fe6a

commit 07837b02379a6d0e128a971e6a8654282b99fe6a
Author: Aaron Leventhal <aleventhal@chromium.org>
Date: Fri Oct 06 15:15:44 2017

Offsets, nCharacters should relate to the same hypertext representation

All IAcccessibleText methods should use offsets and lengths that relate
to the hypertext representation containing embedded object characters.
They should not relate to the fully expanded text (e.g. name or value).

Currently if you have hypertext like:
<embedded><embedded>

The get_nCharacters() method should return 2, but sometimes returns a
large number. Similarly, IA2_TEXT_OFFSET_LENGTH should be equivalent to
using nCharacters.

Bug:  770197 
Change-Id: I6d6e77a60fd7b08e7a1f011ad5d6d2b81e8f3f7e
Reviewed-on: https://chromium-review.googlesource.com/692336
Reviewed-by: Nektarios Paisios <nektar@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#507074}
[modify] https://crrev.com/07837b02379a6d0e128a971e6a8654282b99fe6a/content/test/data/accessibility/aria/aria-textbox-with-rich-text-expected-win.txt
[modify] https://crrev.com/07837b02379a6d0e128a971e6a8654282b99fe6a/content/test/data/accessibility/aria/aria-textbox-with-rich-text.html
[modify] https://crrev.com/07837b02379a6d0e128a971e6a8654282b99fe6a/ui/accessibility/platform/ax_platform_node_win.cc

Comment 7 by dougt@chromium.org, Oct 9 2017

Blocking: 770377

Sign in to add a comment