Skip to content

Commit 31f5e7a

Browse files
committed
docs(all): converting fragment links to lower-case
1 parent 112a60e commit 31f5e7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+105
-105
lines changed

build/metalsmith/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h1 id="what-is-focusable">What is focusable?</h1>
6565
</header>
6666

6767
<section>
68-
<p>Do you know which elements are <em>focusable</em> or <em>tabbable</em>? ally.js does and does it's best to hide that complexity behind <a href="api/index.html#Finding-elements">simple to use APIs</a>.</p>
68+
<p>Do you know which elements are <em>focusable</em> or <em>tabbable</em>? ally.js does and does it's best to hide that complexity behind <a href="api/index.html#finding-elements">simple to use APIs</a>.</p>
6969
<p><a href="data-tables/focusable.html"><img src="assets/home/focusable-crop.png" alt="image of focusable data-table"></a></p>
7070
<p>See <a href="what-is-focusable.html">What does "focusable" mean</a>.</p>
7171
</section>

build/metalsmith/partials/site-navigation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</li>
88
{{/is}}
99
{{/each}}
10-
<li class="download"><a href="{{websiteRoot}}getting-started.html#Downloading-the-UMD-bundle">Download</a></li>
10+
<li class="download"><a href="{{websiteRoot}}getting-started.html#downloading-the-umd-bundle">Download</a></li>
1111
<li class="github"><a href="https://github.com/medialize/ally.js">Github</a></li>
1212
</ul>
1313
</nav>

docs/api/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ In order to work with focusable elements, we must first know which elements we'r
4141
* [`ally.query.focusable`](query/focusable.md) finds all focusable elements
4242
* [`ally.query.shadowHosts`](query/shadow-hosts.md) finds all elements hosting a `ShadowRoot`
4343
* [`ally.query.tabbable`](query/tabbable.md) finds all keyboard focusable elements in DOM order
44-
* [`ally.query.tabsequence`](query/tabsequence.md) finds all keyboard focusable elements in [Sequential Navigation Focus Order](../../concepts.md#Sequential-navigation-focus-order)
44+
* [`ally.query.tabsequence`](query/tabsequence.md) finds all keyboard focusable elements in [Sequential Navigation Focus Order](../../concepts.md#sequential-navigation-focus-order)
4545

4646

4747
## Element state
4848

49-
Unlike any other ally modules, these components do not take take [`options.context` argument](concepts.md#Single-options-argument), but expect the `element` as first argument, allowing easy use in [`.filter()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter). See [what does "focusable" mean?](../what-is-focusable.md) for a differentiation.
49+
Unlike any other ally modules, these components do not take take [`options.context` argument](concepts.md#single-options-argument), but expect the `element` as first argument, allowing easy use in [`.filter()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter). See [what does "focusable" mean?](../what-is-focusable.md) for a differentiation.
5050

5151
* [`ally.is.activeElement`](is/active-element.md) returns true if the element is the activeElement of its host context, i.e. its document, iFrame or ShadowHost
5252
* [`ally.is.disabled`](is/disabled.md) returns true if the element is `:disabled`

docs/api/concepts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ While most services will only return an object containing the `disengage()` func
7676

7777
### Global service
7878

79-
A Global Service (`<global-service>`) is a component that exposes [Service](#Service) API, but will only start a single instance and keep track of its users. This allows ally.js to get by without a service registry in order to reduce complexity. Global Services don't have any arguments and always return the same handle object.
79+
A Global Service (`<global-service>`) is a component that exposes [Service](#service) API, but will only start a single instance and keep track of its users. This allows ally.js to get by without a service registry in order to reduce complexity. Global Services don't have any arguments and always return the same handle object.
8080

8181
```js
8282
// start the service

docs/api/element/blur.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var result = ally.element.blur(element);
2626

2727
| Name | Type | Default | Description |
2828
| ---- | ---- | ------- | ----------- |
29-
| element | [`<selector>`](../concepts.md#Selector) | *required* | The Element to blur. First element of the collections is used. |
29+
| element | [`<selector>`](../concepts.md#selector) | *required* | The Element to blur. First element of the collections is used. |
3030

3131
### Returns
3232

docs/api/element/disabled.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Makes an element inert, i.e. not editable.
1212

1313
HTML knows the [`:disabled`](https://developer.mozilla.org/en-US/docs/Web/CSS/%3Adisabled) state for form elements, but lacks something similar for all the other interactive elements. This utility makes a form of this convenient state available to every element.
1414

15-
Elements that were made inert by [`ally.element.disabled`](#ally.element.disabled) can be identified in the DOM by the attribute `[data-ally-disabled="true"]` to align with styling of other `:disabled` elements.
15+
Elements that were made inert by [`ally.element.disabled`](#allyelementdisabled) can be identified in the DOM by the attribute `[data-ally-disabled="true"]` to align with styling of other `:disabled` elements.
1616

1717
The following things are done in order to make an element inert:
1818

@@ -43,7 +43,7 @@ var isDisabled = ally.element.disabled(element);
4343

4444
| Name | Type | Default | Description |
4545
| ---- | ---- | ------- | ----------- |
46-
| element | [`<selector>`](../concepts.md#Selector) | *required* | The Element to modify. First element of the collections is used. |
46+
| element | [`<selector>`](../concepts.md#selector) | *required* | The Element to modify. First element of the collections is used. |
4747
| state | boolean, `undefined` | `undefined` | `true` to disable the element, `false` to enable the element. |
4848

4949

@@ -80,8 +80,8 @@ In Google Chrome `<audio controls>` and `<video controls>` elements are made ine
8080

8181
## Related resources
8282

83-
* [`ally.is.disabled`](../is/disabled.md) is able to identify elements disabled by [`ally.element.disabled`](#ally.element.disabled)
84-
* [`ally.maintain.disabled`](../maintain/disabled.md) is a [service](../concepts.md#Service) finding focusable elements and disabling them within the DOM
83+
* [`ally.is.disabled`](../is/disabled.md) is able to identify elements disabled by [`ally.element.disabled`](#allyelementdisabled)
84+
* [`ally.maintain.disabled`](../maintain/disabled.md) is a [service](../concepts.md#service) finding focusable elements and disabling them within the DOM
8585

8686
* [HTML5: Disabled Elements](https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements)
8787
* [WICG: Adding a [disabled] attribute to `<a>`s](https://discourse.wicg.io/t/adding-a-disabled-attribute-to-a-s/1116)

docs/api/element/focus.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ var result = ally.element.focus(element);
3333

3434
| Name | Type | Default | Description |
3535
| ---- | ---- | ------- | ----------- |
36-
| element | [`<selector>`](../concepts.md#Selector) | *required* | The Element to focus. First element of the collections is used. |
37-
| options | [`<focus options>`](#Focus-options-argument) | `{defaultToAncestor: true}` | The Element to test. |
36+
| element | [`<selector>`](../concepts.md#selector) | *required* | The Element to focus. First element of the collections is used. |
37+
| options | [`<focus options>`](#focus-options-argument) | `{defaultToAncestor: true}` | The Element to test. |
3838

3939
#### Focus options argument
4040

docs/api/event/active-element.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ handle.disengage();
4141

4242
### Returns
4343

44-
A [`<global-service>`](../concepts.md#Global-service) interface, providing the `handle.disengage()` method to stop the service.
44+
A [`<global-service>`](../concepts.md#global-service) interface, providing the `handle.disengage()` method to stop the service.
4545

4646
### Throws
4747

docs/api/event/shadow-focus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ handle.disengage();
3131

3232
### Returns
3333

34-
A [`<global-service>`](../concepts.md#Global-service) interface, providing the `handle.disengage()` method to stop the service.
34+
A [`<global-service>`](../concepts.md#global-service) interface, providing the `handle.disengage()` method to stop the service.
3535

3636
### Throws
3737

docs/api/fix/pointer-focus-children.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ var handle = ally.fix.pointerFocusChildren({
5050

5151
| Name | Type | Default | Description |
5252
| ---- | ---- | ------- | ----------- |
53-
| context | [`<selector>`](../concepts.md#Selector) | [`document`](https://developer.mozilla.org/en-US/docs/Web/API/Document) | The scope of the DOM in which to apply the fix. All elements of the collections are used. |
53+
| context | [`<selector>`](../concepts.md#selector) | [`document`](https://developer.mozilla.org/en-US/docs/Web/API/Document) | The scope of the DOM in which to apply the fix. All elements of the collections are used. |
5454

5555
### Returns
5656

57-
A [`<service>`](../concepts.md#Service) interface, providing the `handle.disengage()` method to stop the service.
57+
A [`<service>`](../concepts.md#service) interface, providing the `handle.disengage()` method to stop the service.
5858

5959
### Throws
6060

docs/api/fix/pointer-focus-input.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ var handle = ally.fix.pointerFocusInput({
3434

3535
| Name | Type | Default | Description |
3636
| ---- | ---- | ------- | ----------- |
37-
| context | [`<selector>`](../concepts.md#Selector) | [`document`](https://developer.mozilla.org/en-US/docs/Web/API/Document) | The scope of the DOM in which to apply the fix. All elements of the collections are used. |
37+
| context | [`<selector>`](../concepts.md#selector) | [`document`](https://developer.mozilla.org/en-US/docs/Web/API/Document) | The scope of the DOM in which to apply the fix. All elements of the collections are used. |
3838

3939
### Returns
4040

41-
A [`<service>`](../concepts.md#Service) interface, providing the `handle.disengage()` method to stop the service.
41+
A [`<service>`](../concepts.md#service) interface, providing the `handle.disengage()` method to stop the service.
4242

4343
### Throws
4444

docs/api/fix/pointer-focus-parent.example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ <h1><code>ally.fix.pointerFocusParent</code> Example</h1>
2222
<main>
2323
<h2>Natural Browser Behavior</h2>
2424
<div tabindex="-1">
25-
<a href="#foo">some link</a>
25+
<a href="#example-introduction">some link</a>
2626
</div>
2727

2828
<h2>Fixed Behavior</h2>
2929
<div tabindex="-1" id="fix-pointer-focus">
30-
<a href="#foo">some link</a>
30+
<a href="#example-introduction">some link</a>
3131
</div>
3232
</main>
3333
</div>

docs/api/fix/pointer-focus-parent.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ var handle = ally.fix.pointerFocusParent({
3939

4040
| Name | Type | Default | Description |
4141
| ---- | ---- | ------- | ----------- |
42-
| context | [`<selector>`](../concepts.md#Selector) | [`document`](https://developer.mozilla.org/en-US/docs/Web/API/Document) | The scope of the DOM in which to apply the fix. All elements of the collections are used. |
42+
| context | [`<selector>`](../concepts.md#selector) | [`document`](https://developer.mozilla.org/en-US/docs/Web/API/Document) | The scope of the DOM in which to apply the fix. All elements of the collections are used. |
4343

4444
### Returns
4545

46-
A [`<service>`](../concepts.md#Service) interface, providing the `handle.disengage()` method to stop the service.
46+
A [`<service>`](../concepts.md#service) interface, providing the `handle.disengage()` method to stop the service.
4747

4848
### Throws
4949

docs/api/get/focus-redirect-target.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var element = ally.get.focusRedirectTarget({
2727

2828
| Name | Type | Default | Description |
2929
| ---- | ---- | ------- | ----------- |
30-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to identify the target for. |
30+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to identify the target for. |
3131

3232
### Returns
3333

docs/api/get/focus-target.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ var element = ally.get.focusTarget({
3838

3939
| Name | Type | Default | Description |
4040
| ---- | ---- | ------- | ----------- |
41-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to start searching from. The first element of a collection is used. |
42-
| except | [`<focus identification exception>`](../concepts.md#Focus-identification-exceptions) | `{}` | The Element to test. |
41+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to start searching from. The first element of a collection is used. |
42+
| except | [`<focus identification exception>`](../concepts.md#focus-identification-exceptions) | `{}` | The Element to test. |
4343

4444
### Returns
4545

@@ -61,7 +61,7 @@ var element = ally.get.focusTarget({
6161

6262
## Notes
6363

64-
See [`ally.get.focusRedirectTarget`](./focus-redirect-target.md#Notes)
64+
See [`ally.get.focusRedirectTarget`](./focus-redirect-target.md#notes)
6565

6666

6767
## Related resources

docs/api/get/insignificant-branches.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ var elements = ally.get.insignificantBranches({
3939

4040
| Name | Type | Default | Description |
4141
| ---- | ---- | ------- | ----------- |
42-
| context | [`<selector>`](../concepts.md#Selector) | [`documentElement`](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement) | The scope of the DOM in which to search. The first element of a collection is used. |
43-
| filter | [`<selector>`](../concepts.md#Selector) | *required* | The *significant elements* to exclude from the search. |
42+
| context | [`<selector>`](../concepts.md#selector) | [`documentElement`](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement) | The scope of the DOM in which to search. The first element of a collection is used. |
43+
| filter | [`<selector>`](../concepts.md#selector) | *required* | The *significant elements* to exclude from the search. |
4444

4545
### Returns
4646

@@ -65,7 +65,7 @@ Array of [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLEleme
6565

6666
## Related resources
6767

68-
* [`ally.maintain.hidden`](../maintain/hidden.md) is a [service](../concepts.md#Service) hiding insignificant branches from the [Accessibility Tree](../../concepts.md#Accessibility-tree)
68+
* [`ally.maintain.hidden`](../maintain/hidden.md) is a [service](../concepts.md#service) hiding insignificant branches from the [Accessibility Tree](../../concepts.md#accessibility-tree)
6969

7070

7171
## Contributing

docs/api/get/parents.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Identifies the parent elements
1010

1111
## Description
1212

13-
Like [`jQuery.parents()`](https://api.jquery.com/parents/), except [`ally.get.parents`](#ally.get.parents) doesn't have a filter arguments.
13+
Like [`jQuery.parents()`](https://api.jquery.com/parents/), except [`ally.get.parents`](#allygetparents) doesn't have a filter arguments.
1414

1515
The returned list is sorted as follows `[element, element.parent, element.parent.parent, …]`
1616

@@ -27,7 +27,7 @@ var elements = ally.get.parents({
2727

2828
| Name | Type | Default | Description |
2929
| ---- | ---- | ------- | ----------- |
30-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to start searching from. The first element of a collection is used. |
30+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to start searching from. The first element of a collection is used. |
3131

3232
### Returns
3333

docs/api/get/shadow-host-parents.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var elements = ally.get.shadowHostParents({
2323

2424
| Name | Type | Default | Description |
2525
| ---- | ---- | ------- | ----------- |
26-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to start searching from. The first element of a collection is used. |
26+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to start searching from. The first element of a collection is used. |
2727

2828
### Returns
2929

docs/api/get/shadow-host.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var element = ally.get.shadowHost({
2323

2424
| Name | Type | Default | Description |
2525
| ---- | ---- | ------- | ----------- |
26-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to start searching from. The first element of a collection is used. |
26+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to start searching from. The first element of a collection is used. |
2727

2828
### Returns
2929

docs/api/is/focus-relevant.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ var isFocusRelevant = ally.is.focusRelevant(element);
2828
| ---- | ---- | ------- | ----------- |
2929
| element | [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLElement) | *required* | The Element to test. |
3030

31-
The underlying rules can also be accessed in the [`options` argument style](../concepts.md#Single-options-argument) by calling `ally.is.focusRelevant.rules(options)`:
31+
The underlying rules can also be accessed in the [`options` argument style](../concepts.md#single-options-argument) by calling `ally.is.focusRelevant.rules(options)`:
3232

3333
| Name | Type | Default | Description |
3434
| ---- | ---- | ------- | ----------- |
35-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to examine. The first element of a collection is used. |
36-
| except | [`<focus identification exception>`](../concepts.md#Focus-identification-exceptions) | `{}` | The Element to test. |
35+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to examine. The first element of a collection is used. |
36+
| except | [`<focus identification exception>`](../concepts.md#focus-identification-exceptions) | `{}` | The Element to test. |
3737

3838
### Returns
3939

docs/api/is/focusable.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ var isFocusable = ally.is.focusable(element);
2828
| ---- | ---- | ------- | ----------- |
2929
| element | [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLElement) | *required* | The Element to test. |
3030

31-
The underlying rules can also be accessed in the [`options` argument style](../concepts.md#Single-options-argument) by calling `ally.is.focusable.rules(options)`:
31+
The underlying rules can also be accessed in the [`options` argument style](../concepts.md#single-options-argument) by calling `ally.is.focusable.rules(options)`:
3232

3333
| Name | Type | Default | Description |
3434
| ---- | ---- | ------- | ----------- |
35-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to examine. The first element of a collection is used. |
36-
| except | [`<focus identification exception>`](../concepts.md#Focus-identification-exceptions) | `{}` | The Element to test. |
35+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to examine. The first element of a collection is used. |
36+
| except | [`<focus identification exception>`](../concepts.md#focus-identification-exceptions) | `{}` | The Element to test. |
3737

3838
### Returns
3939

@@ -57,7 +57,7 @@ Boolean, `true` if the element is focusable.
5757

5858
## Notes
5959

60-
See [`ally.is.focusRelevant`](./focus-relevant.md#Notes)
60+
See [`ally.is.focusRelevant`](./focus-relevant.md#notes)
6161

6262

6363
## Related resources

docs/api/is/only-tabbable.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ var isOnlyTabbable = ally.is.onlyTabbable(element);
2828
| ---- | ---- | ------- | ----------- |
2929
| element | [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLElement) | *required* | The Element to test. |
3030

31-
The underlying rules can also be accessed in the [`options` argument style](../concepts.md#Single-options-argument) by calling `ally.is.onlyTabbable.rules(options)`:
31+
The underlying rules can also be accessed in the [`options` argument style](../concepts.md#single-options-argument) by calling `ally.is.onlyTabbable.rules(options)`:
3232

3333
| Name | Type | Default | Description |
3434
| ---- | ---- | ------- | ----------- |
35-
| context | [`<selector>`](../concepts.md#Selector) | *required* | The element to examine. The first element of a collection is used. |
36-
| except | [`<focus identification exception>`](../concepts.md#Focus-identification-exceptions) | `{}` | The Element to test. |
35+
| context | [`<selector>`](../concepts.md#selector) | *required* | The element to examine. The first element of a collection is used. |
36+
| except | [`<focus identification exception>`](../concepts.md#focus-identification-exceptions) | `{}` | The Element to test. |
3737

3838
### Returns
3939

@@ -57,7 +57,7 @@ Boolean, `true` if the element is only tabbable.
5757

5858
## Notes
5959

60-
See [`ally.is.focusRelevant`](./focus-relevant.md#Notes)
60+
See [`ally.is.focusRelevant`](./focus-relevant.md#notes)
6161

6262
:::note
6363
There is no way to feature detect if an element is tabbable or not. The `Element.tabIndex` property gives some indication, but ultimately user agent sniffing (via [platform.js](https://github.com/bestiejs/platform.js/)) is done internally to fix mismatches.

0 commit comments

Comments
 (0)