Skip to content

Commit 1179d7f

Browse files
Revert unintended changes while updating ‘Bibliography’ to ‘Other Resources’ (#2362)
* Revert "Bibliography -> other resources (#2358)" This reverts commit b10d1ae. * Bibliography -> other resources --------- Co-authored-by: Daniel Montalvo <[email protected]>
1 parent ed3ac22 commit 1179d7f

5 files changed

+46
-46
lines changed

_rules/focusable-no-keyboard-trap-standard-nav-a1b64e.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -88,43 +88,43 @@ use [standard keyboard navigation](#standard-keyboard-navigation) using the Esca
8888
```html
8989
<div>Main page content with <a href="#">some link</a></div>
9090
<div aria-hidden="true">
91-
<a href="#" id="sentinelBefore" style="position:absolute; top:-999em"
92-
>Upon receiving focus, this focus sentinel should wrap focus to the bottom of the modal</a
93-
>
91+
<a href="#" id="sentinelBefore" style="position:absolute; top:-999em"
92+
>Upon receiving focus, this focus sentinel should wrap focus to the bottom of the modal</a
93+
>
9494
</div>
9595
<div
96-
id="sampleModal"
97-
role="dialog"
98-
aria-label="Sample Modal"
99-
aria-modal="true"
100-
style="border: solid black 1px; padding: 1rem;"
96+
id="sampleModal"
97+
role="dialog"
98+
aria-label="Sample Modal"
99+
aria-modal="true"
100+
style="border: solid black 1px; padding: 1rem;"
101101
>
102-
<label>First and last name <input id="dialogFirst"/></label><br />
103-
<button id="closeButton">Close button</button>
102+
<label>First and last name <input id="dialogFirst"/></label><br />
103+
<button id="closeButton">Close button</button>
104104
</div>
105105
<div aria-hidden="true">
106-
<a href="#" id="sentinelAfter" style="position:absolute; top:-999em"
107-
>Upon receiving focus, this focus sentinel should wrap focus to the top of the modal</a
108-
>
106+
<a href="#" id="sentinelAfter" style="position:absolute; top:-999em"
107+
>Upon receiving focus, this focus sentinel should wrap focus to the top of the modal</a
108+
>
109109
</div>
110110
<script>
111-
window.addEventListener('load', () => {
112-
document.getElementById('dialogFirst').focus()
113-
})
114-
document.getElementById('sentinelBefore').addEventListener('focus', () => {
115-
document.getElementById('closeButton').focus()
116-
})
117-
document.getElementById('sentinelAfter').addEventListener('focus', () => {
118-
document.getElementById('dialogFirst').focus()
119-
})
120-
document.getElementById('closeButton').addEventListener('click', () => {
121-
document.getElementById('sampleModal').style.display = 'none'
122-
})
123-
document.getElementById('sampleModal').addEventListener('keydown', evt => {
124-
if (evt.key === 'Escape') {
125-
document.getElementById('sampleModal').style.display = 'none'
126-
}
127-
})
111+
window.addEventListener('load', () => {
112+
document.getElementById('dialogFirst').focus();
113+
})
114+
document.getElementById('sentinelBefore').addEventListener('focus', () => {
115+
document.getElementById('closeButton').focus()
116+
})
117+
document.getElementById('sentinelAfter').addEventListener('focus', () => {
118+
document.getElementById('dialogFirst').focus()
119+
})
120+
document.getElementById('closeButton').addEventListener('click', () => {
121+
document.getElementById('sampleModal').style.display = 'none'
122+
})
123+
document.getElementById('sampleModal').addEventListener('keydown', (evt) => {
124+
if (evt.key === "Escape") {
125+
document.getElementById('sampleModal').style.display = 'none';
126+
}
127+
})
128128
</script>
129129
```
130130

_rules/presentational-children-no-focusable-content-307n5z.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This rule assumes that elements that are part of [sequential focus navigation][]
4343

4444
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.
4545

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"`.
4747

4848
### Related rules
4949

@@ -97,12 +97,13 @@ This element with the `menuitemcheckbox` role has an `input` element as a descen
9797

9898
#### Passed Example 4
9999

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.
101101

102102
```html
103103
<button><a>button/link</a></button>
104104
```
105105

106+
106107
### Failed
107108

108109
#### Failed Example 1
@@ -139,7 +140,7 @@ This element with the `menuitemcheckbox` role has a checkbox as a child. Because
139140

140141
#### Failed Example 4
141142

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.)
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.)
143144

144145
```html
145146
<ul role="tablist">
@@ -151,7 +152,7 @@ This element with the `tab` role contains an `a` element. The `tab` role has [pr
151152

152153
#### Failed Example 5
153154

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.
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.
155156

156157
```html
157158
<span role="img" aria-label="some ASCII art">****** This ASCII art ******* <a href="#">contains a link.</a></span>
@@ -161,7 +162,7 @@ This element with the `img` role contains an `a` element. The `img` role has [pr
161162

162163
#### Inapplicable Example 1
163164

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.
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.
165166

166167
```html
167168
<table>
@@ -180,7 +181,7 @@ None of the roles that build this semantic table structure (`table` for `table`,
180181

181182
#### Inapplicable Example 2
182183

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.
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.
184185

185186
```html
186187
<a href="https://w3.org"><span tabindex="0">W3C Website</span></a>

_rules/role-attribute-valid-value-674b10.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ This `role` attribute is empty ("").
167167
This `role` attribute is only [ASCII whitespace][].
168168

169169
```html
170-
<input type="text" role=" " aria-label="field name" />
170+
<input type="text" role=" " aria-label="field name"/>
171171
```
172172

173173
#### Inapplicable Example 5

_rules/role-required-states-and-properties-4e8ab6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ This `combobox` has the required properties `aria-controls` and `aria-expanded`.
121121

122122
```html
123123
<label for="tag_combo" id="tag_label">Tag</label>
124-
<input type="text" id="tag_combo" role="combobox" aria-expanded="true" aria-controls="popup_listbox" />
124+
<input type="text" id="tag_combo" role="combobox" aria-expanded="true" aria-controls="popup_listbox"/>
125125
<ul role="listbox" id="popup_listbox" aria-labelledby="tag_label">
126126
<li role="option">Zebra</li>
127127
<li role="option" id="selected_option">Zoom</li>
@@ -197,7 +197,7 @@ This `div` does not have a [semantic role](#semantic-role).
197197
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.
198198

199199
```html
200-
<input type="checkbox" role="checkbox" aria-label="Checkbox name" />
200+
<input type="checkbox" role="checkbox" aria-label="Checkbox name"/>
201201
```
202202

203203
#### Inapplicable Example 3

_rules/scrollable-element-keyboard-accessible-0ssw9k.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ This rule applies to any [HTML element][] that has [visible][] [children][] in t
4040

4141
## Expectation
4242

43-
For each target element, at least one of the following is true:
44-
45-
- the element is included in [sequential focus navigation][]; or
43+
For each target element, at least one of the following is true:
44+
- the element is included in [sequential focus navigation][]; or
4645
- the element has a [descendant][] in the [flat tree][] that is included in [sequential focus navigation][]; or
4746
- the element is [inert][].
4847

@@ -120,7 +119,7 @@ This [scrollable][] `section` element is [inert][] because of the modal dialog,
120119
```html
121120
<style>
122121
dialog:-internal-dialog-in-top-layer::backdrop {
123-
background: rgba(1, 1, 1, 0.8);
122+
background: rgba(1, 1, 1, 0.8);
124123
}
125124
</style>
126125
<section style="height: 100px; width: 500px; overflow: scroll;" tabindex="0">
@@ -145,11 +144,11 @@ This [scrollable][] `section` element is [inert][] because of the modal dialog,
145144
</dialog>
146145
<script>
147146
const openDialog = () => {
148-
ppDialog.showModal()
147+
ppDialog.showModal();
149148
myFrame.tabIndex = '-1'
150149
}
151-
ppDialog.addEventListener('close', () => (myFrame.tabIndex = 0))
152-
window.addEventListener('DOMContentLoaded', openDialog)
150+
ppDialog.addEventListener('close', () => myFrame.tabIndex = 0)
151+
window.addEventListener('DOMContentLoaded', openDialog);
153152
</script>
154153
```
155154

0 commit comments

Comments
 (0)