“wairole”和“wairole”有什么区别?和“角色”;属性?
我已经开始在 Web 应用程序上进行 dojo 可访问性测试,并注意到元素同时具有角色和 wairole 属性,它们的值似乎相同。
经过多次搜索,我无法理解两者之间的区别。谁能解释一下吗?
I have begun doing dojo accessibility testing on a web application and have noticed that elements have both a role and a wairole attribute that seem to be the same value.
After much searching I have been unable to understand the difference between the two. Can anyone explain this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不再使用wairole属性。根据 WAI-ARIA 1.0 和 HTML5 使用角色
wairole attribute is no longer used. Use role as per WAI-ARIA 1.0 and HTML5
我不确定这是否是一个完整的解释,但是现已废弃的 XHTML2 中的
role
属性比role< 允许的 WAI-ARIA 角色具有更广泛的用途。 HTML5 中的 /code> 属性。
2006/2007 年有人建议,为了避免混淆,HTML5 中的属性应称为
wairole
,Dojo 可能只是试图涵盖这两个基础。请参阅http://lists.whatwg.org/ htdig.cgi/whatwg-whatwg.org/2006-August/007150.html 一个地方建议使用
wairole
名称。I'm not sure whether this is a full explanation, but the
role
attribute in the now abandoned XHTML2 had a much wider use than just the WAI-ARIA roles that are allowed for therole
attribute in HTML5.The was some suggestion ~2006/2007 that to avoid confusion, the attribute in HTML5 should be called
wairole
, and it may be that Dojo is just trying to cover both bases.See http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2006-August/007150.html for one place where the
wairole
name was suggested.