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

Wrong handling of longdesc #24

Open
pbb72 opened this issue Sep 29, 2023 · 0 comments
Open

Wrong handling of longdesc #24

pbb72 opened this issue Sep 29, 2023 · 0 comments

Comments

@pbb72
Copy link

pbb72 commented Sep 29, 2023

Your code copies the content of the longdesc attribute into the desc element.

However, the longdesc attribute shall contain "A link to a more detailed description of the image. Possible values are a URL or an element id" (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes:~:text=CSS%20property%20instead.-,longdesc,-Deprecated), while "The desc element provides an accessible, long-text description of any SVG" (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/desc).

Completely different kind of content. The longdesc attribute is a link, not a text.

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

1 participant