What is the difference between wairole and role attributes?

I started doing dojo accessibility testing in a web application and noticed that the elements have both a role and a wairole attribute that seem the same.

After a long search, I could not understand the difference between the two. Can anyone explain this?

+6
source share
2 answers

I'm not sure if this is a complete explanation, but the role attribute in the already abandoned XHTML2 had much wider use than just the WAI-ARIA roles that are allowed for the role attribute in HTML5.

There was some suggestion ~ 2006/2007 to avoid confusion, the attribute in HTML5 should be called wairole , and it may be that Dojo is simply trying to cover both bases.

See http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2006-August/007150.html for one place where the name wairole was suggested.

+2
source
Attribute

wairole is no longer used. Use role in WAI-ARIA 1.0 and HTML5

+5
source

Source: https://habr.com/ru/post/888331/


All Articles