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

Fragmentions should scroll to img alt text #4

Open
tantek opened this issue Jan 7, 2020 · 0 comments
Open

Fragmentions should scroll to img alt text #4

tantek opened this issue Jan 7, 2020 · 0 comments

Comments

@tantek
Copy link
Member

@tantek tantek commented Jan 7, 2020

The Fragmention specification does not mention img element alt text as part of the text that it searches for matches, and I think it should because there are use-cases for it.

Use-case 1: I want to reference the third image in this post with a fragmention, and figured the alt text would provide a nice way to do so.

Use-case 2: A screen reader user is listening to a page, including the inline alt text from images, and decides to respond or otherwise comment on something they heard in the alt text, constructs a fragmention with some of that text and expects it to work like any other text phrase in the document with a fragmention.

Use-case 3: A web image search crawler is indexing images on various websites and as part of displaying search results for an image, wants to link directly to a specific image on a page that happens to have alt text which matched the search terms of the search query. In order to link directly to that image, the search engine determines a several word phrase of that img’s alt text and uses it to construct a fragmention link which is then provided in the search result.

In each of these cases, it makes sense for the user clicking on a fragmention link to be able to "scroll to" a specific image / that specific section of alt text, and thus the specification should both support that behavior and make it a MUST for interoperability and reliability.

(Originally published at: https://tantek.com/2020/006/b1/fragmentions-should-scroll-img-alt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.