-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Ignores "alt" text on <object> element #6146
Comments
I'm not an expert on the
It seems like screen readers expect alt text somewhere other than the |
Thank you both @patrickhulce and @paulirish I'll move the text within the tag body if that's the expected behavior. TBH, I'm not an expert on
@paulirish Yeah, that one 😆 After a lot of fiddling and customization of the final animation. Overall pretty impressed with it though! |
not totally sure what you mean. afaik you have a few options with this svg
the Personally I feel like inline SVG is the right semantic call here. it carries with it some other accessibility responsibilities (these probably?), but you're luckily in that axe-core currently doesn't inspect SVG, so it won't be flagging things.. for now. :) |
Thanks~! I agree that inline SVG is the best choice here, but I'll have to circle back to that. It poses a slight challenge during development due to how webpack wants to base64 the SVGs but extract them for production builds. Gotta play with the defaults for Anyway, I moved the alt text within the Apologies, but thank you both for the help! |
This issue needs reopening. Upstream has determined there is no bug, so there is a lighthouse documentation problem on: It specifically shows examples for the case that axe has determined to not work with access tools, and hence fails on. It also talks about an alt attribute which does not exist (there is no alt attribute on the object element). |
Copying this extra useful (IMHO) info from the closed duplicate issue: #11649 (comment)
|
@tunetheweb Thanks for information. I've updated my site. |
Docs have been update, but changes are not published as of writing this |
Provide the steps to reproduce
What is the current behavior?
It fails, saying that
<object> elements do not have [alt] text
, put prints the failing element showing that it does indeed have analt
attribute with text.https://twitter.com/lukeed05/status/1046462007841447936
What is the expected behavior?
It should be able to parse the
alt
text correctly since it exists.Environment Information
The text was updated successfully, but these errors were encountered: