Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update annotation roles AXAPI mapping #137

Merged
merged 1 commit into from Apr 9, 2023
Merged

Conversation

spectranaut
Copy link
Contributor

@spectranaut spectranaut commented Sep 3, 2022

Brought to my attention in: https://bugs.chromium.org/p/chromium/issues/detail?id=1359005

We have never documented AXAttributedStringForTextMarkerRange -- but it looks like it is typically used for surfacing CSS attributes.

  • WPT tests: PR
  • Implementations (link to issue or when done, link to commit):

Preview | Diff

index.html Outdated Show resolved Hide resolved
@@ -736,6 +736,7 @@ <h3>Role Mapping Table</h3>
<td class="role-axapi">
<span class="property">AXRole: <code>AXGroup</code></span><br />
<span class="property">AXSubrole: <code>AXDeleteStyleGroup</code></span><br />
<span class="property">AXAttributedStringForTextMarkerRange: contains <code>AXIsSuggestedDeletion = 1;</code> for all text contained in a <code>deletion</code></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cookiecrook I'd say the the terminology AXIsSuggestedDeletion/Insertion are a misnomer, because suggestions are only one use case. The insertion/deletion markup is useful for marking up a diff/history of a file. It's an insertion or deletion from the past.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@aleventhal aleventhal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 but I'd like @cookiecrook to look at my comment about the naming of AXIsSuggested[Insertion|Deletion]. It's find as long as it doesn't reach the user, because it would be weird e.g for a VoiceOver user to hear that when reading a diff with the current version of a doc and an older version.

@cookiecrook
Copy link
Contributor

cookiecrook commented Sep 15, 2022

Checking with others... If I understand your point, you're stating "suggested" should never be exposed to the screen reader as user-presented speech or braille, but you don't care whether it remains in the non-user-presented key. Is that right?

@aleventhal
Copy link
Contributor

Right, I think there are plenty of misnomers or confusing parts of various APIs. It's not ideal, but that's up to you to decide if it's worth the effort to deprecate or change it. The real problem is if user's hear something is suggested when it's just reporting that something was historically inserted or removed when comparing versions.

@cookiecrook
Copy link
Contributor

Filed WebKit bug here. https://webkit.org/b/245546

Intention is to keep the current API working in perpetuity, so no reason to hold off implementing the existing API.

@spectranaut spectranaut merged commit e48a618 into main Apr 9, 2023
github-actions bot added a commit that referenced this pull request Apr 9, 2023
SHA: e48a618
Reason: push, by spectranaut

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants