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

Accessibility #73

Closed
gked opened this issue Jul 23, 2019 · 1 comment
Closed

Accessibility #73

gked opened this issue Jul 23, 2019 · 1 comment

Comments

@gked
Copy link
Contributor

gked commented Jul 23, 2019

moving from https://github.com/dlibby-/highlight/issues/11
@Reinmar and @Comandeer as FYI

Question:
I wonder if and how the semantics of created highlights should be exposed to assistive technologies.

For instance – when highlights would be used to render spellchecking squiggles we should also have a way to tell the that this piece of text is misspelled. I don't know how the selection itself is rendered in the Accessibility Object Model, but I think that highlights should be able to use the same mechanism.

I'd imagine that the easiest solution may be to allow defining a highlight's title. For a misspelled fragment of text it could be set to "misspelled" (that's at least what VoiceOver reads).

Post from @Comandeer
In the simplest case something like HighlightRange#label should be enough. However, if you already referenced AOM, there is proposal for virtual accessibility nodes, that are dedicated just for this case: exposing non-element nodes in accessibility tree. In such case HighlightRange interface should be updated in following manner:

partial interface HighlightRange {
	AccessibleNode attachAccessibleRoot();
}

The only part that it's worrying me a little is the fact that VANs are behaving a little like pseudoelements (they could have dimensions and position).

@sanketj
Copy link
Member

sanketj commented Dec 14, 2019

Closing this issue. This has now been moved to the CSS WG drafts repo (see link above).

@sanketj sanketj closed this as completed Dec 14, 2019
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

No branches or pull requests

2 participants