网站是否可以在需要 JavaScript 的情况下仍符合第 508 条规定?

发布于 2024-09-07 13:08:00 字数 246 浏览 8 评论 0原文

我想我了解 Javascript 必须如何工作才能符合第 508 条规定。但我一直无法找到相关问题的答案:我的网站是否需要在没有 Javascript 的情况下工作才能符合第 508 条规定?

举个极端的例子,如果没有Javascript的用户无法登录,是否违反了508条规定?如果是这样,文中哪里对此进行了解释?

我知道所有内容都必须能够通过屏幕阅读器、无鼠标键盘的用户等访问。但是所有内容都需要能够被没有 JavaScript 的用户访问吗?

I think I understand HOW Javascript has to work in order to be O.K. for section 508. But I have been unable to find an answer to a related question: does my site need to work WITHOUT Javascript in order to be section 508 compliant?

To take an extreme case, if users without Javascript cannot log in, does that violate section 508 compliance? And if so, where in the text is that explained?

I know that all content has to be accessible with screenreaders, for keyboard-with-no-mouse users, etc. BUT does all content need to be accessible to users without Javascript?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

沙与沫 2024-09-14 13:08:00

最近的调查发现绝大多数用户运行屏幕阅读器的 JS 已启用,而不是禁用。诚然,屏幕阅读器的作用正如其名称所暗示的那样:它读取屏幕。如果屏幕阅读器不知道在哪里阅读,那么它就无法完成其工作。例如,如果您想支持这些用户,模式对话框可能是一个坏主意,尽管包括表单验证之类的东西可能不是一个糟糕的主意。

这个想法是为了防止屏幕上的项目变化太快。如果您经常使用 JS 更新 UI 的大型元素,您可能不会从屏幕阅读器社区得到太大的响应。另一方面,如果大部分 JS 都在幕后,那么大多数屏幕阅读器用户可能甚至不会注意到您正在使用脚本。

我上面提供的链接底部的列表提供了对屏幕阅读器用户面临的最大问题的深入了解。避免可能出现这些场景的任何情况(即:视觉验证码、复杂的布局、快速更新的 UI 元素等)可能会让您保持良好的状态。

一如既往,给自己下载一个屏幕阅读器(有很多 免费 开源 读者可用)进行测试出你的软件。

Recent surveys have found that a vast majority of users that run screen readers have JS enabled, not disabled. Granted, a screen reader does what its name implies: it reads the screen. If a screen reader doesn't know where to read, then it can't do its job. For instance, modal dialogs are probably a bad idea if you're looking to support those users, though including something like form validation probably isn't a terrible idea.

The idea is to keep items on the screen from changing too rapidly. If you update large elements of your UI frequently using JS, you're probably not going to get too great of a response from the screen reader community. On the other hand, if the majority of the JS is behind-the-scenes, then most screen reader users probably won't even notice that you're using scripts.

The list at the bottom of the link I provided above gives some great insight into the biggest problems that screen reader users face. Avoiding any situations where those scenarios might pop up (i.e.: visual CAPTCHAs, complex layouts, rapidly updated UI elements, etc.) will probably leave you in good shape.

And as always, download yourself a screen reader (there are plenty of free and open source readers available) to test out your software.

剑心龙吟 2024-09-14 13:08:00

ADA 508 不要求您具备 JavaScript。您所要做的就是添加一个 标记,说明他们在没有启用 JavaScript 的情况下无法登录。然后,当启用它时,您应该验证所调用的事件处理程序在屏幕阅读器上没有问题。

此站点解释了适用于大多数屏幕阅读器的 JavaScript 事件处理程序:
http://ada508.com/
OnClick 和简单的验证应该没问题。

简而言之...不,只要页面上有 标签,读者无需使用 JavaScript 即可访问所有内容。

ADA 508 doesn't require you to have JavaScript. All you have to do is add a <noscript> tag that explains that they can't log in without JavaScript enabled. Then when it is enabled, you should verify that the event handlers that are called have no problems on screen readers.

This site explains the javascript event handlers that work well with most screen readers:
http://ada508.com/
OnClick and simple validation should be fine.

So in short...no, all content does not have to be accessible to readers without JavaScript as long as you have a <noscript> tag on the page.

握住我的手 2024-09-14 13:08:00

第 508 节合规性规则根本没有指定您是否使用 Javascript。它只是强制要求您必须提供对以电子方式提供的信息的平等访问权限,无论电子交付方式如何。对于网站,无论是通过使您的网站可访问(使用或不使用 javascript)、整个网站的纯文本版本,还是某人可以拨打的电话号码来完成,该电话号码配备了适当的人员并可以访问所有这些信息,您已经满足了法律的意图

有关 508 合规性信息的最佳资源之一是 http://www.section508.gov

Section 508 compliance rules do not specify at all whether you use or do not use Javascript. It merely enforces the fact that you must provide equal access to the information you are presenting electronically, regardless of electronic delivery method. For a website, whether that is done by making your website accessible (with or without javascript), a text-only version of your entire website, or a phone number that someone can call that is staffed appropriately and has access to all that information, you have satisfied the intent of the law.

One of the best resources for information on 508 compliance is http://www.section508.gov.

放我走吧 2024-09-14 13:08:00

过去的情况是,在网站上找到 JavaScript 意味着该网站几乎不可能被访问。感谢诸如 ARIA 角色,特别是焦点控制之类的东西,无法访问的 javascript 已经成为过去。

为了让你的js符合要求,你只需要注意焦点在哪里,以及你的实际内容是否可以通过辅助技术访问。关于这个主题的资源不胜枚举,但没有一个比 Google 的网络辅助功能简介更切题。班级。不用担心,它只需要一个电子邮件地址,并且如果您需要的话,您可以快速获得所需的大部分内容。祝你好运! Accessible js 需要一点工作,但这是值得的!

It used to be the case that finding JavaScript on a website meant there was little to no chance that the site in question would be accessible. Thanks to things like ARIA roles and especially focus control, inaccessible javascript is a thing of the past.

In order to make your js comply, you simply have to pay attention to where the focus is, and whether or not your actual content can be accessed by assistive technology. There are easily dozens of resources on this topic, but none so much to the point as Google's Intro to Web Accessibility class. Fear not, it doesn't require much more than an email address, and you can get the majority of what you need in a hurry, should that be your need. Good luck! Accessible js takes a little bit of work, but it is worth it!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文