简体   繁体   English

ARIA验证错误:属性角色的错误值滑块

[英]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 . 该角色必须是buttonlinkmenuitemmenuitemcheckboxmenuitemradioradio

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何避免“元素元素属性名称的错误值语言”HTML验证错误? - How can I avoid the “Bad value language for attribute name on element meta” HTML validation error? 验证:元素链接上的属性rel首先出现错误值 - Validation: Bad value first for attribute rel on element link 验证错误“元素链接上属性 rel 的错误值 apple-touch-icon-precomposed:未注册关键字 apple-touch-icon-precomposed。” - Validation error “Bad value apple-touch-icon-precomposed for attribute rel on element link: Keyword apple-touch-icon-precomposed is not registered.” aria-expanded属性应采用值true还是字符串“ true”? - Should aria-expanded attribute take the value true or string “true”? 结帐摘要的标记和aria角色 - Markup and aria role for a checkout summary 咏叹调角色选项卡与箭头按钮 - aria role tabs with arrow buttons 部分元素的角色属性值无效? - Invalid role attribute value for section element? 在XHTML5验证中摆脱“ XHTML元素元上的属性http-equiv的值X-XRDS-Location无效”。 - Get rid of “Bad value X-XRDS-Location for attribute http-equiv on XHTML element meta.” in XHTML5 validation 对于消息列表,什么是合适的ARIA角色? - What is a suitable ARIA role for a list of messages? 错误:元素元数据上的属性http-equiv的值X-UA-兼容错误 - Error: Bad value X-UA-Compatible for attribute http-equiv on element meta
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM