508 合规性的对象元素内容
508 合规性规则之一是所有 OBJECT 标签都应包含元素内容。我不熟悉 OBJECT 标签或任何东西,但内容通常应该是什么?我注意到如果我只是在 OBJECT 标签中放入任何字符串,我似乎就通过了 508 测试。
是否可以在 OBJECT 标签中放置任何内容来进行此通过验证?我可以只放“无用的字符串”吗?内容有什么作用?
One of the 508 compliance rules are that all OBJECT tags should contain element content. I'm not familiar with OBJECT tags or anything, but what should the content usually be? I noticed if I just put any string within the OBJECT tags I seem to pass the 508 test.
Is it acceptable to put anything within the OBJECT tags to make this pass verification? Can I just put "useless string"? What effect does the content have?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
内容应提供与嵌入对象等效的信息。
使用无用的字符串不会使其符合 508 标准。因此,如果您的目标是 508 合规性,那么这是不可接受的。您的自动化测试可能会报告通过,但除非具有真实内容,否则它并不真正合规。
这个替代内容的效果如何?当残疾人访问网站并且他们的辅助软件无法处理嵌入的对象时,软件会回退到替代内容。假设您在页面中嵌入了 Flash 演示文稿。当盲人使用读屏软件访问网站时,读屏软件可能无法解析Flash影片。相反,它会读出替代内容中的文本。
The content should provide information equivalent to the embedded object.
Using an useless string will not make it 508 compliant. Thus, that wouldn't be acceptable if your goal is 508 compliance. Your automated test may report a pass, but it's not really compliant unless it has real content.
The effect of this alternate content? When a disabled person visits the website and their assistive software cannot process the embedded object, the software falls back to the alternate content. Let's say you embed a Flash presentation in the page. When a blind person visits the site with a screen reading software, the screen reading software might not be able to parse the Flash movie. Instead, it reads out the text that is in the alternate content.
该内容用于在浏览器因任何原因无法显示该对象的情况下进行后备。将其视为
元素的
alt
属性。自动检查器无法验证您是否放入了合理的内容,只能验证您已经放入了某些内容。您有责任使该内容合理。它应该提供您可以提供的最佳等效文本(或其他 HTML),以传达与对象可显示时所传达的信息相同的信息。
The content is for fallback in the case that the browser for any reason cannot display the object. Think of it as like the
alt
attribute for<img>
elements. An automated checker can't verify that you are putting something sensible in, only that you've put something in.It's your responsibility to make that content sensible. It should provide the best possible equivalent in text (or other HTML) that you can provide that conveys the same information as would have been conveyed by the object had it been displayable.