Skip to content

Commit

Permalink
chore: Run ECLint fixFew manual overrides where the tool couldn't guess
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Aug 26, 2018
1 parent 5a0085b commit fb4ff77
Show file tree
Hide file tree
Showing 131 changed files with 2,182 additions and 2,208 deletions.
1 change: 0 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
All documents in this Repository are licensed by contributors
under the
[W3C Software and Document License](https://www.w3.org/Consortium/Legal/copyright-software).

586 changes: 293 additions & 293 deletions aria-practices-DeletedSectionsArchive.html

Large diffs are not rendered by default.

102 changes: 51 additions & 51 deletions aria-practices.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/accordion/js/accordion.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* Simple accordion pattern example
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* Simple accordion pattern example
*/

'use strict';

Expand Down
2 changes: 1 addition & 1 deletion examples/alert/alert.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<li><a href="https://github.com/w3c/aria-practices/projects/20">Related Issues</a></li>
<li><a href="../../#alert">Design Pattern</a></li>
</ul>
</nav>
</nav>
<main>
<h1>Alert Example</h1>
<p>
Expand Down
22 changes: 11 additions & 11 deletions examples/alert/js/alert.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
*/
window.addEventListener('load', function () {

var button = document.getElementById('alert-trigger');
Expand All @@ -12,13 +12,13 @@ window.addEventListener('load', function () {
});

/*
* @function addAlert
*
* @desc Adds an alert to the page
*
* @param {Object} event - Standard W3C event object
*
*/
* @function addAlert
*
* @desc Adds an alert to the page
*
* @param {Object} event - Standard W3C event object
*
*/

function addAlert (event) {

Expand Down
14 changes: 7 additions & 7 deletions examples/button/js/button.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: button.js
*
* Desc: JS code for Button Design Pattersn
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: button.js
*
* Desc: JS code for Button Design Pattersn
*/

var ICON_MUTE_URL = 'images/mute.svg#icon-mute';
var ICON_SOUND_URL = 'images/mute.svg#icon-sound';
Expand Down
4 changes: 2 additions & 2 deletions examples/checkbox/checkbox-1/checkbox-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ <h3 id="id-group-label">Sandwich Condiments</h3>

<div role="separator" id="ex_end_sep" aria-labelledby="ex_end_sep ex_label" aria-label="End of"></div>

</section>
</section>

<section>
<section>
<h2 id="kbd_label">Keyboard Support</h2>
<table aria-labelledby="kbd_label" class="def">
<thead>
Expand Down
27 changes: 13 additions & 14 deletions examples/checkbox/checkbox-1/js/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: Checkbox.js
*
* Desc: Checkbox widget that implements ARIA Authoring Practices
* for a menu of links
*
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: Checkbox.js
*
* Desc: Checkbox widget that implements ARIA Authoring Practices
* for a menu of links
*
*/

/*
* @constructor Checkbox
*
*
*/
* @constructor Checkbox
*
*
*/
var Checkbox = function (domNode) {

this.domNode = domNode;
Expand Down Expand Up @@ -81,4 +81,3 @@ Checkbox.prototype.handleFocus = function (event) {
Checkbox.prototype.handleBlur = function (event) {
this.domNode.classList.remove('focus');
};

4 changes: 2 additions & 2 deletions examples/checkbox/checkbox-2/checkbox-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>Checkbox Example (Mixed-State)</h1>
<h2 id="ex_label">Example</h2>
<div role="separator" id="ex_start_sep" aria-labelledby="ex_start_sep ex_label" aria-label="Start of"></div>
<div id="ex1">
<fieldset>
<fieldset>
<legend>Sandwich Condiments</legend>
<div
role="checkbox"
Expand Down Expand Up @@ -195,7 +195,7 @@ <h2 id="rps_label">Role, Property, State, and Tabindex Attributes</h2>
</table>
</section>

<section>
<section>
<h2>Javascript and CSS Source Code</h2>
<ul>
<li>CSS: <a href="../css/checkbox.css" type="text/css">checkbox.css</a></li>
Expand Down
25 changes: 12 additions & 13 deletions examples/checkbox/checkbox-2/js/checkboxMixed.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: CheckboxMixed.js
*
* Desc: CheckboxMixed widget that implements ARIA Authoring Practices
* for a menu of links
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: CheckboxMixed.js
*
* Desc: CheckboxMixed widget that implements ARIA Authoring Practices
* for a menu of links
*/

/*
* @constructor CheckboxMixed
*
*
*/
* @constructor CheckboxMixed
*
*
*/
var CheckboxMixed = function (domNode) {

this.domNode = domNode;
Expand Down Expand Up @@ -156,4 +156,3 @@ CheckboxMixed.prototype.handleFocus = function (event) {
CheckboxMixed.prototype.handleBlur = function (event) {
this.domNode.classList.remove('focus');
};

25 changes: 12 additions & 13 deletions examples/checkbox/checkbox-2/js/controlledCheckbox.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: controlledCheckbox.js
*
* Desc: ControlledCheckbox widget that implements ARIA Authoring Practices
* for a mixed checkbox
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*
* File: controlledCheckbox.js
*
* Desc: ControlledCheckbox widget that implements ARIA Authoring Practices
* for a mixed checkbox
*/

/*
* @constructor ControlledCheckbox
*
*
*/
* @constructor ControlledCheckbox
*
*
*/
var ControlledCheckbox = function (domNode, controllerObj) {

this.domNode = domNode;
Expand Down Expand Up @@ -103,4 +103,3 @@ ControlledCheckbox.prototype.handleKeyup = function (event) {
ControlledCheckbox.prototype.handleClick = function (event) {
this.lastState = this.isChecked();
};

Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
List the keys supported in this example.
Recommendation: Copy the list from the keyboard section of the design pattern in aria-practices.html
and then reduce/simplify it to describe only what this example supports and how it behaves.
-->
-->
<ul>
<li><kbd>KEY_NAME</kbd>: function</li>
<li><kbd>KEY_NAME</kbd>: function</li>
Expand Down
2 changes: 1 addition & 1 deletion examples/coding-template/Example-Template.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h2 id="kbd_label">Keyboard Support</h2>
Use + to separate modifiers, e.g., <kbd>Control + Right Arrow</kbd>.
One key per row, e.g., do not combine <kbd>Up Arrow</kbd> and <kbd>Down Arrow</kbd> into a single row.
Do not use the word "key", e.g., do not write <kbd>Enter Key</kbd> or <kbd>Enter</kbd> key.
-->
-->
<table aria-labelledby="kbd_label" class="def">
<thead>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions examples/coding-template/css/example_name.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.annotate{
font-style: italic;
color: #366ED4;
font-style: italic;
color: #366ED4;
}
10 changes: 5 additions & 5 deletions examples/combobox/aria1.0pattern/combobox-autocomplete-none.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ <h2 id="ex_label">Example</h2>
<label for="cb1-input">Search</label>
<div class="group">
<input id="cb1-input" class="cb_edit" type="text"
role="combobox"
aria-autocomplete="none"
aria-expanded="false"
aria-haspopup="true"
aria-owns="cb1-listbox"
role="combobox"
aria-autocomplete="none"
aria-expanded="false"
aria-haspopup="true"
aria-owns="cb1-listbox"
/>
<button id="cb1-button" tabindex="-1" aria-label="Open">
&#9661;
Expand Down
5 changes: 2 additions & 3 deletions examples/combobox/aria1.0pattern/css/combobox-1.0.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.annotate{
font-style: italic;
color: #366ED4;
font-style: italic;
color: #366ED4;
}

.combobox-list {
Expand Down Expand Up @@ -35,4 +35,3 @@
font-size: 85%;
background-color: #eee;
}

1 change: 0 additions & 1 deletion examples/combobox/aria1.0pattern/css/listbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ input:hover {
[role="listbox"] li[role="option"]:hover {
background-color: #c2ddef;
}

6 changes: 3 additions & 3 deletions examples/combobox/aria1.0pattern/js/combobox-1.0-list.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*/
var ComboboxList = function (domNode) {

this.domNode = domNode;
Expand Down
22 changes: 10 additions & 12 deletions examples/combobox/aria1.0pattern/js/listbox.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*/
var Listbox = function (domNode, comboboxObj) {
var elementChildren,
msgPrefix = 'Listbox constructor argument domNode ';
Expand Down Expand Up @@ -38,13 +38,13 @@ var Listbox = function (domNode, comboboxObj) {
};

/*
* @method Listbox.prototype.init
*
* @desc
* Add domNode event listeners for mouseover and mouseout. Traverse
* domNode children to configure each option and populate.options
* array. Initialize firstOption and lastOption properties.
*/
* @method Listbox.prototype.init
*
* @desc
* Add domNode event listeners for mouseover and mouseout. Traverse
* domNode children to configure each option and populate.options
* array. Initialize firstOption and lastOption properties.
*/
Listbox.prototype.init = function () {
var childElement, optionElement, optionElements, firstChildElement, option, textContent, numItems;

Expand Down Expand Up @@ -222,5 +222,3 @@ Listbox.prototype.close = function (force) {
this.combobox.setActiveDescendant(false);
}
};


6 changes: 3 additions & 3 deletions examples/combobox/aria1.0pattern/js/listboxOption.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*/
* This content is licensed according to the W3C Software License at
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
*/
var Option = function (domNode, listboxObj) {

this.domNode = domNode;
Expand Down
Loading

0 comments on commit fb4ff77

Please sign in to comment.