Skip to content

Commit 987c12c

Browse files
committed
chore(docs): switching from HTTP to HTTPS
1 parent 88e1af4 commit 987c12c

File tree

101 files changed

+300
-300
lines changed

Some content is hidden

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

101 files changed

+300
-300
lines changed

CHANGELOG.md

+68-68
Large diffs are not rendered by default.

GOALS.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11

22
# ally.js goals
33

4-
The ultimate goal is to make the development of apps adhering to [WAI-ARIA](http://www.w3.org/TR/wai-aria/) a breeze. The ultimatest™ goal is to make this library obsolete by lobbying the W3C and browser vendors into supporting the basic tools provided by ally.js. (One may dream…)
4+
The ultimate goal is to make the development of apps adhering to [WAI-ARIA](https://www.w3.org/TR/wai-aria/) a breeze. The ultimatest™ goal is to make this library obsolete by lobbying the W3C and browser vendors into supporting the basic tools provided by ally.js. (One may dream…)
55

6-
Applications have to deal with quite a number of different issues to get to a state we may call "accessible." There's the issue of *maintaining the focus*, a subset of providing *keyboard navigation*. Then there's [WAI-ARIA](http://www.w3.org/TR/wai-aria/), which helps the browser provide the operating system's Accessibility Infrastructure with the necessary details.
6+
Applications have to deal with quite a number of different issues to get to a state we may call "accessible." There's the issue of *maintaining the focus*, a subset of providing *keyboard navigation*. Then there's [WAI-ARIA](https://www.w3.org/TR/wai-aria/), which helps the browser provide the operating system's Accessibility Infrastructure with the necessary details.
77

8-
Documents like [WAI-ARIA Authoring Practices](http://www.w3.org/WAI/PF/aria-practices/) try to explain what needs to be done, but even though the documents have been "dumbed down", they're still too convoluted to allow quickly understanding things. With `ally.js` we want to take that *document* and turn it into generic, reusable *JavaScript*.
8+
Documents like [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/PF/aria-practices/) try to explain what needs to be done, but even though the documents have been "dumbed down", they're still too convoluted to allow quickly understanding things. With `ally.js` we want to take that *document* and turn it into generic, reusable *JavaScript*.
99

1010
It does not make sense to implement the same things over and over again, which is why `ally.js` is designed in a way that exposes every function individually (i.e. it is "modular"), to allow simple integration in other libraries. The modularity is paramount for preventing application and library authors from copy-pasting code, or worse, rolling their own flawed implementations. While ally.js is not perfect (it's software, it's written by me, …), I want to make this *the place we focus our efforts* - much like has happened for the DOM by way of jQuery.
1111

1212
With ally.js v1.0.0 I've laid the foundation for a library solving the "stupid problems" (like "what is focusable?") so developers won't have to anymore. Here are the topics I'd cover next (not necessarily in that order) and would love your support:
1313

1414
* [x] simplify managing focus
1515
* [x] simplify basic keyboard interaction (`enter`, `escape`, `space`)
16-
* [ ] implement a DOM based interface to simplify handling [WAI-ARIA state attributes](http://www.w3.org/TR/wai-aria/states_and_properties) (along the lines of [IBM-Watson/a11y.js](https://github.com/IBM-Watson/a11y.js))
16+
* [ ] implement a DOM based interface to simplify handling [WAI-ARIA state attributes](https://www.w3.org/TR/wai-aria/states_and_properties) (along the lines of [IBM-Watson/a11y.js](https://github.com/IBM-Watson/a11y.js))
1717
* easily creating unique-IDs for linking elements e.g. `<label for="uniq-123">…</label><input id="uniq-123">`
1818
* toggling states
1919
* easy support for multiple-id-values, e.g. `aria-labeledby="id-1 id-2 id-3"` possibly via [DOMTokenList](https://dom.spec.whatwg.org/#interface-domtokenlist), e.g. via [tokenlist](https://github.com/rodneyrehm/tokenlist)
20-
* [ ] implement a keyboard command abstraction that maps the keyboard interactions suggested by [WAI-ARIA Authoring Practices](http://www.w3.org/WAI/PF/aria-practices/) (e.g. [Listbox](http://www.w3.org/WAI/PF/aria-practices/#Listbox)) to [Indie UI Event Triggers](https://w3c.github.io/indie-ui/indie-ui-events.html#triggers)
20+
* [ ] implement a keyboard command abstraction that maps the keyboard interactions suggested by [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/PF/aria-practices/) (e.g. [Listbox](https://www.w3.org/WAI/PF/aria-practices/#Listbox)) to [Indie UI Event Triggers](https://w3c.github.io/indie-ui/indie-ui-events.html#triggers)
2121
* [ ] implement the corresponding [Indie UI Event Actions](https://w3c.github.io/indie-ui/indie-ui-events.html#actions) against DOM elements depending on their `role="…"` attribute
2222

2323
---

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ ally.js is a JavaScript library simplifying certain accessibility features, func
2222

2323
## Requirements
2424

25-
* [ES5](http://kangax.github.io/compat-table/es5/)
25+
* [ES5](https://kangax.github.io/compat-table/es5/)
2626
* [ES6 Array.prototype.findIndex](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex)
27-
* [CSSOM CSS.escape](https://developer.mozilla.org/en-US/docs/Web/API/CSS.escape) ([spec](http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method))
27+
* [CSSOM CSS.escape](https://developer.mozilla.org/en-US/docs/Web/API/CSS.escape) ([spec](https://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method))
2828
* [Element.classList](https://developer.mozilla.org/en/docs/Web/API/Element/classList)
2929

3030

@@ -38,7 +38,7 @@ ally.js is a JavaScript library simplifying certain accessibility features, func
3838

3939
## Resources
4040

41-
* [Website](http://allyjs.io/)
41+
* [Website](https://allyjs.io/)
4242
* [Documentation](docs/README.md)
4343
* [CONTRIBUTING.md](CONTRIBUTING.md) explaining how to author, test, document and build ally.js
4444
* [CHANGELOG.md](CHANGELOG.md) detailing what changed over time
@@ -47,14 +47,14 @@ ally.js is a JavaScript library simplifying certain accessibility features, func
4747

4848
## Supported by
4949

50-
* [BrowserStack](http://browserstack.com) and [SauceLabs](http://saucelabs.com/) provide VMs for automated testing - free for open source projects.
50+
* [BrowserStack](https://browserstack.com) and [SauceLabs](https://saucelabs.com/) provide VMs for automated testing - free for open source projects.
5151
* [Code Climate](https://codeclimate.com/github/medialize/ally.js) and [Coveralls](https://coveralls.io/github/medialize/ally.js/) provide us with automated code analysis and coverage reports - free for open source projects.
5252
* [Travis CI](https://travis-ci.org/medialize/ally.js) provides a build server - free for open source projects.
5353

5454

5555
## License
5656

57-
ally.js is published under the [MIT License](http://opensource.org/licenses/mit-license).
57+
ally.js is published under the [MIT License](https://opensource.org/licenses/mit-license).
5858

5959

6060
[npm-image]: https://img.shields.io/npm/v/ally.js.svg

build/data-tables/focusable-tables.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ generateTableDocument({
6767
targetFile: path.resolve(targetDirectory, 'focusable.html'),
6868
title: 'Focusable Elements - Browser Compatibility Table',
6969
introduction: `<p>The following tables show which elements individual browsers consider focusable or tabbable (keyboard focusable).
70-
The tables are based on the <a href="http://allyjs.io/tests/focusable/test.html">focusable test document</a>.</p>
70+
The tables are based on the <a href="https://allyjs.io/tests/focusable/test.html">focusable test document</a>.</p>
7171
<p>Note that touch devices (without a physical keyboard) only show elements as tabbable (keyboard focusable),
7272
that can be navigated to through the on-screen keyboard (or "virtual keyboard").</p>`,
7373
skipExpected: false,
@@ -159,7 +159,7 @@ generateTableDocument({
159159
targetFile: path.resolve(targetDirectory, 'focusable.jquery.html'),
160160
title: 'Focusable Elements - jQuery UI Compatibility Table',
161161
introduction: `<p>The following tables show the differences between what browsers consider <a href="./focusable.html">focusable</a>
162-
and what <a href="http://api.jqueryui.com/focusable-selector/">jQuery UI</a> identifies.</p>
162+
and what <a href="https://api.jqueryui.com/focusable-selector/">jQuery UI</a> identifies.</p>
163163
<p>Note that touch devices (without a physical keyboard) only show elements as tabbable (keyboard focusable),
164164
that can be navigated to through the on-screen keyboard (or "virtual keyboard").</p>`,
165165
skipExpected: true,

build/data-tables/templates/document.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
table:not(#sticky-table-header) + table thead {
5252
/*
5353
visually hide consecutive headers
54-
see http://w3c.github.io/wai-tutorials/forms/labels/#note-on-hiding-elements
54+
see https://w3c.github.io/wai-tutorials/forms/labels/#note-on-hiding-elements
5555
*/
5656
position: absolute;
5757
width: 1px;

build/metalsmith/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ <h1 id="supported-by">Supported by</h1>
120120
<section>
121121
<ul>
122122
<li>
123-
<a href="http://browserstack.com">BrowserStack</a> and <a href="http://saucelabs.com/">SauceLabs</a>
123+
<a href="https://browserstack.com">BrowserStack</a> and <a href="https://saucelabs.com">SauceLabs</a>
124124
provide VMs for automated testing - <em>free for open source projects.</em>
125125
</li>
126126
<li>

build/metalsmith/metalsmith.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const injectExamples = require('./plugins/inject-examples');
1717
const absoluteUrl = require('./plugins/absolute-url');
1818

1919
const WEBSITE_ROOT = '/medialize/ally.js/';
20-
const WEBSITE_CANONICAL = 'http://allyjs.io/';
20+
const WEBSITE_CANONICAL = 'https://allyjs.io/';
2121

2222
function getRedirectionMap() {
2323
// make sure legacy links are forwarded
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<footer>
2-
<p>ally.js is published under the <a href="http://opensource.org/licenses/mit-license">MIT License</a>.</p>
2+
<p>ally.js is published under the <a href="https://opensource.org/licenses/mit-license">MIT License</a>.</p>
33
<p><a href="{{websiteRoot}}legal.html">Legal</a>, <a href="https://github.com/medialize/ally.js">Github</a>, <a href="https://twitter.com/allyjs_io">@allyjs_io</a>.</p>
44
<p>Created By <a href="https://twitter.com/rodneyrehm">Rodney Rehm</a>.</p>
55
</footer>

build/metalsmith/plugins/absolute-url.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
absoluteUrl({ property: "websiteRoot", define: "/hello/world" })
1515
1616
convert all URLs beginning with websiteRoot to relative URLs
17-
absoluteUrl({ resolve: "/hello/world", canonical: "http://example.org/" })
17+
absoluteUrl({ resolve: "/hello/world", canonical: "https://example.org/" })
1818
*/
1919

2020
// inspired by

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ layout: index.html
2626

2727
## License
2828

29-
ally.js is published under the [MIT License](http://opensource.org/licenses/mit-license).
29+
ally.js is published under the [MIT License](https://opensource.org/licenses/mit-license).

docs/api/concepts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Many components work on the DOM. Components ingest elements identified by variou
3939
* array of [`HTMLElement`](https://developer.mozilla.org/en/docs/Web/API/HTMLElement)
4040
* [`NodeList`](https://developer.mozilla.org/en/docs/Web/API/NodeList)
4141
* [`HTMLCollection`](https://developer.mozilla.org/en/docs/Web/API/HTMLCollection)
42-
* [`jQuery`](http://api.jquery.com/jQuery/) instance
42+
* [`jQuery`](https://api.jquery.com/jQuery/) instance
4343

4444

4545
## Focus identification exceptions

docs/api/element/blur.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Shifts focus away from an element if it currently has focus.
1010

1111
## Description
1212

13-
The [`blur()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur) method is available on all [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement). But this is not necessarily true for [`SVGElement`](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement). Only Blink and WebKit expose the `blur()` method on SVG elements, Gecko, Trident and Edge do not. This will likely change once [SVG 2](http://www.w3.org/TR/SVG2/interact.html#Focus) is a thing. Until then `ally.element.blur()` tries to apply `HTMLElement.prototoype.blur` to `SVGElement`s. This only works for Internet Explorer 9 - 11, as Gecko and Edge actively prevent this.
13+
The [`blur()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur) method is available on all [`HTMLElement`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement). But this is not necessarily true for [`SVGElement`](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement). Only Blink and WebKit expose the `blur()` method on SVG elements, Gecko, Trident and Edge do not. This will likely change once [SVG 2](https://www.w3.org/TR/SVG2/interact.html#Focus) is a thing. Until then `ally.element.blur()` tries to apply `HTMLElement.prototoype.blur` to `SVGElement`s. This only works for Internet Explorer 9 - 11, as Gecko and Edge actively prevent this.
1414

1515
According to [jQuery Bug 9420](https://bugs.jqueryui.com/ticket/9420) calling `blur()` on the `body` element may make the browser window lose focus. `ally.element.blur()` guards against this.
1616

docs/api/element/disabled.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ var isDisabled = ally.element.disabled(element);
7676
* [`ally.is.disabled`](../is/disabled.md) is able to identify elements disabled by [`ally.element.disabled`](#ally.element.disabled)
7777
* [`ally.maintain.disabled`](../maintain/disabled.md) is a [service](../concepts.md#Service) finding focusable elements and disabling them within the DOM
7878

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

8282

8383
## Contributing

docs/api/element/focus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The [`Element.focus()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEle
1818
</a>
1919
```
2020

21-
While `focus()` is available on `HTMLElement`, this is not necessarily true for [`SVGElement`](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement). Only Blink and WebKit expose the `focus()` method on SVG elements, Gecko, Trident and Edge do not. This will likely change once [SVG 2](http://www.w3.org/TR/SVG2/interact.html#Focus) is a thing. Until then `ally.element.focus()` tries to apply `HTMLElement.prototoype.focus` to `SVGElement`s. This only works for Internet Explorer 9 - 11, as Gecko and Edge actively prevent this.
21+
While `focus()` is available on `HTMLElement`, this is not necessarily true for [`SVGElement`](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement). Only Blink and WebKit expose the `focus()` method on SVG elements, Gecko, Trident and Edge do not. This will likely change once [SVG 2](https://www.w3.org/TR/SVG2/interact.html#Focus) is a thing. Until then `ally.element.focus()` tries to apply `HTMLElement.prototoype.focus` to `SVGElement`s. This only works for Internet Explorer 9 - 11, as Gecko and Edge actively prevent this.
2222

2323
Browsers [scroll the focused element into view](https://github.com/whatwg/html/issues/94), if it isn't already. However, this may interfere with widgets revealing content in an animated fashion. As there is no way to focus an element *without* the browser scrolling the element into view, `ally.element.focus()` provides the option `undoScrolling` to revert all scroll containers of the focused element to their state before the element got focus.
2424

docs/api/event/active-element.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Observes changes to `document.activeElement` regardless of focus/blur events and
1212

1313
The property `document.activeElement` is visited on every [animation frame](https://developer.mozilla.org/en-US/docs/Web/API/window.requestAnimationFrame).
1414

15-
This event should not be abused because `FocusEvent`s do not bubble and are therefore unaccessible to [event delegation](http://davidwalsh.name/event-delegate), as the handling of `focus` and `blur` events *can* be delegated when using the [capture phase](http://www.quirksmode.org/js/events_order.html):
15+
This event should not be abused because `FocusEvent`s do not bubble and are therefore unaccessible to [event delegation](https://davidwalsh.name/event-delegate), as the handling of `focus` and `blur` events *can* be delegated when using the [capture phase](http://www.quirksmode.org/js/events_order.html):
1616

1717
```js
1818
document.addEventListener('focus', function(event) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Considering the following markup, clicking on one of the `<span>` elements would
2323
}
2424
</style>
2525

26-
<a href="http://example.org/" class="fancy-link">
26+
<a href="https://example.org/" class="fancy-link">
2727
<span>Hello</span>
2828
<span>World</span>
2929
</a>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This *Browser Bug Workaround* targets an issue in Safari and Firefox **on Mac OS
1111
## Description
1212

1313
> In Firefox for Mac, Chrome and Safari, some types of form field don’t take the focus at all when clicked with the mouse; this behavior is limited to fields which have no typed input, such as radios, checkboxes, buttons, color-pickers and sliders.
14-
> -- [When Do Elements Take the Focus?](http://www.sitepoint.com/when-do-elements-take-the-focus/)
14+
> -- [When Do Elements Take the Focus?](https://www.sitepoint.com/when-do-elements-take-the-focus/)
1515
1616

1717
## Usage

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Considering the following markup, clicking on the `<a>` element would focus the
1414

1515
```html
1616
<div tabindex="-1">
17-
<a href="http://example.org/">Hello World</a>
17+
<a href="https://example.org/">Hello World</a>
1818
</div>
1919
```
2020

docs/api/get/parents.md

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

1111
## Description
1212

13-
Like [`jQuery.parents()`](http://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`](#ally.get.parents) doesn't have a filter arguments.
1414

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

docs/api/is/disabled.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Boolean, `true` if the element is disabled.
5353

5454
* [`ally.element.disabled`](../element/disabled.md) can disable *any* interactive element
5555

56-
* [HTML5: Disabled Elements](http://www.w3.org/TR/html5/disabled-elements.html#disabled-elements)
56+
* [HTML5: Disabled Elements](https://www.w3.org/TR/html5/disabled-elements.html#disabled-elements)
5757

5858

5959
## Contributing

docs/api/is/valid-area.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ Boolean, `true` if the element is a valid area.
5252

5353
## Related resources
5454

55-
* [HTML5: The Map Element](http://www.w3.org/TR/html5/embedded-content-0.html#the-map-element)
56-
* [HTML5: The Area Element](http://www.w3.org/TR/html5/embedded-content-0.html#the-area-element)
57-
* [HTML5: Image Maps](http://www.w3.org/TR/html5/embedded-content-0.html#image-maps)
55+
* [HTML5: The Map Element](https://www.w3.org/TR/html5/embedded-content-0.html#the-map-element)
56+
* [HTML5: The Area Element](https://www.w3.org/TR/html5/embedded-content-0.html#the-area-element)
57+
* [HTML5: Image Maps](https://www.w3.org/TR/html5/embedded-content-0.html#image-maps)
5858

5959

6060
## Contributing

docs/api/is/valid-tabindex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Boolean, `true` if the element is has a valid tabindex attribute specified.
4646

4747
## Related resources
4848

49-
* [HTML5: The `tabindex` attribute](http://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute)
49+
* [HTML5: The `tabindex` attribute](https://www.w3.org/TR/html5/editing.html#sequential-focus-navigation-and-the-tabindex-attribute)
5050

5151

5252
## Contributing

0 commit comments

Comments
 (0)