Skip to content

Commit d553f24

Browse files
committed
chore: cite HTML-AAM spec for section→region role mapping
1 parent 7ac894b commit d553f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/lib/rules/template-no-nested-landmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ruleTester.run('template-no-nested-landmark', rule, {
4545

4646
// `<section>` only gets the `region` landmark role when it has an accessible name
4747
// (aria-label/aria-labelledby/title). Without one it has the generic role — see
48-
// https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/region_role.
48+
// https://www.w3.org/TR/html-aam-1.0/#el-section
4949
// This rule does not inspect accessible names, so unnamed sections are excluded.
5050
'<template><section><section>Content</section></section></template>',
5151
// `role="region"` is the landmark role a named `<section>` gets. Nesting it is

0 commit comments

Comments
 (0)