[英]ARIA validation error: Bad value slider for attribute role
I am trying to validate against W3C validator a page that contains: 我正在尝试针对W3C验证器验证包含以下内容的页面:
<button role="slider"></button>
And the validator tells me: 验证者告诉我:
Bad value slider for attribute role on element button
元素按钮上的属性角色的错误值滑块
Any idea why? 知道为什么吗? I can't find any explanation in the ARIA specs.
我在ARIA规范中找不到任何解释。 I have seen in this blog post that
landmark
roles are not supported by the validator, but slider is a widget
role. 我在这篇博客文章中看到验证器不支持
landmark
角色,但是Slider是widget
角色。 Also, another post in the same blog uses the code above as an example... 另外, 同一博客中的另一篇文章以上面的代码为例...
Simply feeding the code above to the validator allows to reproduce. 只需将上面的代码提供给验证器即可重现。
The button
element has Implicit ARIA Semantics in HTML5. button
元素在HTML5中具有隐式ARIA语义 。 The role must be either button
, link
, menuitem
, menuitemcheckbox
, menuitemradio
or radio
. 该角色必须是
button
, link
, menuitem
, menuitemcheckbox
, menuitemradio
或radio
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.