2024-04-11 09:27:08 +02:00
|
|
|
include::../rationale.adoc[]
|
2023-10-13 11:50:54 +00:00
|
|
|
|
|
|
|
This rule does not cover non-DOM elements, such as custom components.
|
|
|
|
|
2024-04-11 09:27:08 +02:00
|
|
|
include::../fix.adoc[]
|
2023-10-13 11:50:54 +00:00
|
|
|
|
|
|
|
[source,javascript,diff-id=1,diff-type=noncompliant]
|
|
|
|
----
|
|
|
|
<div role="meth" aria-label="a^{2} + b^{2} = c^{2}">
|
|
|
|
a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup>
|
|
|
|
</div>
|
|
|
|
----
|
|
|
|
|
|
|
|
To fix the code use a valid value for the ARIA role attribute.
|
|
|
|
|
|
|
|
[source,javascript,diff-id=1,diff-type=compliant]
|
|
|
|
----
|
|
|
|
<div role="math" aria-label="a^{2} + b^{2} = c^{2}">
|
|
|
|
a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup>
|
|
|
|
</div>
|
|
|
|
----
|
|
|
|
|
2024-04-11 09:27:08 +02:00
|
|
|
include::../resources.adoc[]
|