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
Copy file name to clipboardExpand all lines: __tests__/spelling.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,9 @@ function getCuratedMarkdownBody(body, options = {}) {
109
109
* @returns {String[]}
110
110
*/
111
111
functiongetSpellIgnored(){
112
-
constignoreConfigured=yaml.load(fs.readFileSync('./__tests__/spelling-ignore.yml','utf8'),{schema: yaml.FAILSAFE_SCHEMA})//added schema due to entries starting with a non-zero digit
Copy file name to clipboardExpand all lines: _rules/presentational-children-no-focusable-content-307n5z.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ This rule assumes that elements that are part of [sequential focus navigation][]
43
43
44
44
Several major browsers ignore the WAI-ARIA requirements on [presentational children][] for most or sometimes all roles, or in presence of focusable content. Since some browsers implement presentational children while others do not, pages failing this rule may only be problematic with some browsers.
45
45
46
-
This rule is often misunderstood as applying to elements with an _explicit_ role of `presentation`. In fact, this rule only applies to elements which have been given an _implicit_ role of `presentation` through the [presentational children][] mechanism. Similarly, this rule does not apply to elements with `aria-hidden="true"`.
46
+
This rule is often misunderstood as applying to elements with an _explicit_ role of `presentation`. In fact, this rule only applies to elements which have been given an _implicit_ role of `presentation` through the [presentational children][] mechanism. Similarly, this rule does not apply to elements with `aria-hidden="true"`.
47
47
48
48
### Related rules
49
49
@@ -97,13 +97,12 @@ This element with the `menuitemcheckbox` role has an `input` element as a descen
97
97
98
98
#### Passed Example 4
99
99
100
-
This `<button>` element has an `a` element as a [child][]. The `a` element has no `href` attribute, so it isn't included in [sequential focus navigation][]. So this `button` element passes the rule.
100
+
This `<button>` element has an `a` element as a [child][]. The `a` element has no `href` attribute, so it isn't included in [sequential focus navigation][]. So this `button` element passes the rule.
101
101
102
102
```html
103
103
<button><a>button/link</a></button>
104
104
```
105
105
106
-
107
106
### Failed
108
107
109
108
#### Failed Example 1
@@ -140,7 +139,7 @@ This element with the `menuitemcheckbox` role has a checkbox as a child. Because
140
139
141
140
#### Failed Example 4
142
141
143
-
This element with the `tab` role contains an `a` element. The `tab` role has [presentational children][]. The `a` element is included in [sequential focus navigation][]. So the element with the `tab` role fails the rule. (This tablist implementation is non-functional for users. It's not meant to function - it's only meant to show roles.)
142
+
This element with the `tab` role contains an `a` element. The `tab` role has [presentational children][]. The `a` element is included in [sequential focus navigation][]. So the element with the `tab` role fails the rule. (This tablist implementation is non-functional for users. It's not meant to function - it's only meant to show roles.)
144
143
145
144
```html
146
145
<ulrole="tablist">
@@ -152,7 +151,7 @@ This element with the `tab` role contains an `a` element. The `tab` role has [p
152
151
153
152
#### Failed Example 5
154
153
155
-
This element with the `img` role contains an `a` element. The `img` role has [presentational children][]. The `a` element is included in [sequential focus navigation][]. So the element with the `img` role fails the rule.
154
+
This element with the `img` role contains an `a` element. The `img` role has [presentational children][]. The `a` element is included in [sequential focus navigation][]. So the element with the `img` role fails the rule.
156
155
157
156
```html
158
157
<spanrole="img"aria-label="some ASCII art">****** This ASCII art ******* <ahref="#">contains a link.</a></span>
@@ -162,7 +161,7 @@ This element with the `img` role contains an `a` element. The `img` role has [p
162
161
163
162
#### Inapplicable Example 1
164
163
165
-
None of the roles that build this semantic table structure (`table` for `table`, `row` for `tr`, `columnheader` for `th`, and `cell` for `td`) have [presentational children][]. So this rule does not apply to them.
164
+
None of the roles that build this semantic table structure (`table` for `table`, `row` for `tr`, `columnheader` for `th`, and `cell` for `td`) have [presentational children][]. So this rule does not apply to them.
166
165
167
166
```html
168
167
<table>
@@ -181,7 +180,7 @@ None of the roles that build this semantic table structure (`table` for `table`,
181
180
182
181
#### Inapplicable Example 2
183
182
184
-
This `a` element has a `link` role, which does not have [presentational children][]. So this `a` element does not fail this rule, because it's inapplicable. To have a "focusable element within a focusable element" like this is a bad practice, but this rule doesn't directly check for it.
183
+
This `a` element has a `link` role, which does not have [presentational children][]. So this `a` element does not fail this rule, because it's inapplicable. To have a "focusable element within a focusable element" like this is a bad practice, but this rule doesn't directly check for it.
@@ -197,7 +197,7 @@ This `div` does not have a [semantic role](#semantic-role).
197
197
This `checkbox` has an [implicit semantic role](#implicit-role) that is identical to the [explicit semantic role](#explicit-role). This allows native HTML `checked` attribute to apply.
Copy file name to clipboardExpand all lines: _rules/video-transcript-1a02b0.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ accessibility_requirements:
17
17
passed: further testing needed
18
18
inapplicable: further testing needed
19
19
wcag20:1.3.1: # Info and Relationships (A)
20
-
secondary: This success criterion is **related** to this rule. This is because this criterion applies to a visible transcript.
20
+
secondary: This success criterion is **related** to this rule. This is because this criterion applies to a visible transcript.
21
21
wcag20:1.2.1: # Audio-only and Video-only (Prerecorded) (A)
22
22
secondary: This success criterion is **less strict** than this rule. This is because this criterion does not require a transcript when the audio-only or video-only is a media alternative for text and is clearly labeled as such. Some of the failed examples may satisfy this success criterion.
23
23
input_aspects:
@@ -128,7 +128,12 @@ A video element with an associated track element that contains captions for all
<p> Web Accessibility Perspectives: Keyboard Accessibility. Not being able to use your computer because your mouse doesn't work, is frustrating. (A computer user's mouse breaks when it falls off the desk.) Many people use only the keyboard to navigate websites. Either through preference or circumstance. (A person wearing a sling on her arm typing with one hand.) </p>
131
+
<p>
132
+
Web Accessibility Perspectives: Keyboard Accessibility. Not being able to use your computer because your mouse
133
+
doesn't work, is frustrating. (A computer user's mouse breaks when it falls off the desk.) Many people use only the
134
+
keyboard to navigate websites. Either through preference or circumstance. (A person wearing a sling on her arm
0 commit comments