【发布时间】:2015-12-29 13:16:02
【问题描述】:
虽然建议在 <abbr /> 元素上使用 title 属性,但这对屏幕阅读器没有影响(至少对 chromevox 没有影响)。
<abbr title="as soon as possible">ASAP</abbr>
有效的当然是aria-label 例如:
<abbr aria-label="as soon as possible">ASAP</abbr>
因此,为了在语义上正确并兼容屏幕阅读器,我需要同时标记两者:
<abbr aria-label="as soon as possible" title="as soon as possible">ASAP</abbr>
这似乎有点骇人听闻。为什么 chromevox 不直接读取 title 属性?
【问题讨论】:
-
老实说,这听起来像是 chromevox 中的一个错误。
-
其他屏幕阅读器是做什么的?
标签: html accessibility wai-aria screen-readers