Fix role attribute case in main element (#585) · w3c/html-aria@9706711
scottaohara
·
2026-05-20
·
via Recent Commits to html-aria:gh-pages
| Original file line number | Diff line number | Diff line change |
|---|
@@ -349,17 +349,15 @@ <h3>
|
349 | 349 | <button role="button">...</button> |
350 | 350 | </pre> |
351 | 351 | <p> |
352 | | - Similarly, the following uses a `role=group` on a [^fieldset^] element, and a `role=Main` on a [^main^] element. |
| 352 | + Similarly, the following uses a `role=group` on a [^fieldset^] element, and a `role=main` on a [^main^] element. |
353 | 353 | This is unnecessary, because the `fieldset` element is implicitly exposed as a `role=group`, as is the `main` element |
354 | | - implicitly exposed as a `role=main`. Again, in practice this will likely not have any unforeseen side effects to users |
355 | | - of assistive technology, as long as the declaration of the `role` value uses [=ASCII lowercase=]. |
356 | | - Please see [[[#case-sensitivity]]] for more information. |
| 354 | + implicitly exposed as a `role=main`. |
357 | 355 | </p> |
358 | 356 | <pre class="HTML example" title="Redundant role on fieldset and main"> |
359 | 357 | <!-- Avoid doing this! --> |
360 | 358 | <fieldset role="group">...</fieldset> |
361 | | - <!-- or this! --> |
362 | | - <main role="Main">...</main> |
| 359 | + <!-- And similarly this! --> |
| 360 | + <main role="main">...</main> |
363 | 361 | </pre> |
364 | 362 | <p> |
365 | 363 | The following uses a `role=list` on an [^ul^] element. As the `ul` element has an implicit role of `list`, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。