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

Mappings for Text Fragments #563

Open
aleventhal opened this issue Sep 19, 2024 · 1 comment
Open

Mappings for Text Fragments #563

aleventhal opened this issue Sep 19, 2024 · 1 comment
Assignees

Comments

@aleventhal
Copy link
Collaborator

Text fragments - URIs | MDN
Usually, to link to a specific part of a webpage, you would include the URL and the document fragment(ID) of that section. For example, https://w3c.github.io/aria/#states_and_properties. The author of the page must include IDs for elements that they want to be linked to.

With text fragments, link authors can specify text content to link to, rather than document fragments.
The syntax is:

https://example.com#:~:text=[prefix-,]textStart[,textEnd][,-suffix]

Example: https://w3c.github.io/aria/#:~:text=semantic,accessible
This scrolls to and highlights the first instance of a text string starting with semantic and ending with accessible.
Browser Support: Chrome 81, Edge 83, Firefox (Not supported), Opera 68, Safari (Not supported)
Accessibility:
For IA2/ATK, this should be exposed as a text attribute mark:true (IA2/ATK)
For Mac, expose as AXHighlight (undocumented property).
Accessibility Status: Supported in Firefox, not supported in Chromium yet (bug).

@spectranaut
Copy link
Contributor

@benbeaudry do you know what the mappings for this should be in UIA?

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

3 participants