You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code is syntactically incorrect (according to the W3C validator), thus a violation of SC 4.1.1, but not incorrect per se due to the ARIA markup.
<ul>
<div role=listitem></div>
</ul>
listitem is equivalent to <li>. Should this still be considered a violation of 4.1.1 - and if so: why?
The text was updated successfully, but these errors were encountered:
When WCAG 2.0 was in its final year of development, development of WAI-ARIA had already started, with a first public draft of WAI-ARIA published in February 2008. At the time, it was impossible to use WAI-ARIA attributes in HTML (still HTML 4.01 at the time) or XHTML without causing validation errors. (This changed later when HTML 5 drafts began to explicitly address the inclusion of WAI-ARIA attributes in HTML documents.)
It was never WCAG's intention to prohibit the use of WAI-ARIA attributes by means of the wording of SC 4.1.1. For this reason, there is nothing in the SC that prohibits custom attributes.
The code snippet from the original issue does not contain anything that violates SC 4.1.1, neither at the level of element nesting (but that's a separate discussion), nor at the level of attribute syntax:
The following code is syntactically incorrect (according to the W3C validator), thus a violation of SC 4.1.1, but not incorrect per se due to the ARIA markup.
listitem
is equivalent to<li>
. Should this still be considered a violation of 4.1.1 - and if so: why?The text was updated successfully, but these errors were encountered: