0

There seems to be some scenario's where <noscript> succesfully assists in graceful degradation. We all learned why the tag's there and how to use it. As far as I am aware, there are 2 major reasons:

  • the disable JavaScript option
  • screen readers.

On the first one, statistics are hard to get hold of, but it's easy to test for yourself. Also, I've never encountered the need for <noscript> myself to fix some graceful degradation scenario, but that might be just me.

Now, for screenreaders, these stats are a bit easier to get hold of, but I'm mostly interested in actual effectiveness of <noscript>. While it is a widely accepted truth that they "just work", sometimes, an alternative truth can (warning: slight overstatement) rock your world. Like when I got to know that navigation items should not be put into lists.

This thought actually makes me curious as to whether there is any testimonial on the use of <noscript> and whether it is a useful tag in the context that we are always told ("providing alternative content for the visually impaired"). Or maybe there's some implementation paradigm that I'm not aware of that often destroys its effectiveness? Maybe there's even someone visually impaired who might confirm or refute such stories?

note: to attribute some authority to answers, it might help to state that you are visually impaired, if applicable and if you want to of course.

4

1 回答 1

1

屏幕阅读器适用于常规浏览器。只有当用户禁用了 JavaScript 时,Noscript 内容才会呈现给用户,甚至可能不会:

在元素中生成的<noscript>内容并没有多大帮助,至少在 JAWS 中是这样。<noscript>从 7.0 版开始,无论是否禁用脚本,JAWS 都不会在标准阅读模式下阅读内容。(来源)。

我会坚持渐进增强技术。

于 2013-09-16T13:26:13.333 回答