Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Commit f70fc0c

Browse files
author
Alice
committed
Merge pull request #145 from sitevalidator/update-links-to-wiki
updates links to Audit Rules wiki to use the new anchors
2 parents 150230c + 3007952 commit f70fc0c

25 files changed

Lines changed: 25 additions & 26 deletions

src/audits/AriaOnReservedElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ goog.require('axs.properties');
2222
axs.AuditRules.addRule({
2323
name: 'ariaOnReservedElement',
2424
heading: 'This element does not support ARIA roles, states and properties',
25-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_aria_12--this-element-does-not-support-aria-roles-states-and-properties',
25+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_12',
2626
severity: axs.constants.Severity.WARNING,
2727
relevantElementMatcher: function(element) {
2828
return !axs.properties.canTakeAriaAttributes(element);

src/audits/AriaOwnsDescendant.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ axs.AuditRules.addRule({
2727
// Also: other "bad hierarchy" tests - e.g. active-descendant owning a non-descendant...
2828
name: 'ariaOwnsDescendant',
2929
heading: 'aria-owns should not be used if ownership is implicit in the DOM',
30-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_aria_06--aria-owns-should-not-be-used-if-ownership-is-implicit-in-the-dom',
30+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_06',
3131
severity: axs.constants.Severity.WARNING,
3232
relevantElementMatcher: function(element) {
3333
return axs.browserUtils.matchSelector(element, '[aria-owns]');

src/audits/AriaRoleNotScoped.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ goog.require('axs.utils');
2525
axs.AuditRules.addRule({
2626
name: 'ariaRoleNotScoped',
2727
heading: 'Elements with ARIA roles must be in the correct scope',
28-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_aria_09--elements-with-aria-roles-must-be-in-the-correct-scope',
28+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_09',
2929
severity: axs.constants.Severity.SEVERE,
3030
relevantElementMatcher: function(element) {
3131
return axs.browserUtils.matchSelector(element, '[role]');

src/audits/AudioWithoutControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ goog.require('axs.constants.Severity');
2222
axs.AuditRules.addRule({
2323
name: 'audioWithoutControls',
2424
heading: 'Audio elements should have controls',
25-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_audio_01--audio-elements-should-have-controls',
25+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_audio_01',
2626
severity: axs.constants.Severity.WARNING,
2727
relevantElementMatcher: function(element) {
2828
return axs.browserUtils.matchSelector(element, 'audio[autoplay]');

src/audits/BadAriaAttribute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ goog.require('axs.constants');
3333
var badAriaAttribute = {
3434
name: 'badAriaAttribute',
3535
heading: 'This element has an invalid ARIA attribute',
36-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_aria_11--this-element-has-an-invalid-aria-attribute',
36+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_11',
3737
severity: axs.constants.Severity.WARNING,
3838
relevantElementMatcher: function(element) {
3939
var attributes = element.attributes;

src/audits/BadAriaAttributeValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ goog.require('axs.utils');
2323
axs.AuditRules.addRule({
2424
name: 'badAriaAttributeValue',
2525
heading: 'ARIA state and property values must be valid',
26-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_aria_04--aria-state-and-property-values-must-be-valid',
26+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_04',
2727
severity: axs.constants.Severity.SEVERE,
2828
relevantElementMatcher: function(element) {
2929
var selector = axs.utils.getSelectorForAriaProperties(axs.constants.ARIA_PROPERTIES);

src/audits/BadAriaRole.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ goog.require('axs.utils');
2323
axs.AuditRules.addRule({
2424
name: 'badAriaRole',
2525
heading: 'Elements with ARIA roles must use a valid, non-abstract ARIA role',
26-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_aria_01--elements-with-aria-roles-must-use-a-valid-non-abstract-aria-role',
26+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_01',
2727
severity: axs.constants.Severity.SEVERE,
2828
relevantElementMatcher: function(element) {
2929
return axs.browserUtils.matchSelector(element, '[role]');

src/audits/ControlsWithoutLabel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ goog.require('axs.utils');
2323
axs.AuditRules.addRule({
2424
name: 'controlsWithoutLabel',
2525
heading: 'Controls and media elements should have labels',
26-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_text_01--controls-and-media-elements-should-have-labels',
26+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_text_01',
2727
severity: axs.constants.Severity.SEVERE,
2828
relevantElementMatcher: function(element) {
2929
var controlsSelector = ['input:not([type="hidden"]):not([disabled])',

src/audits/DuplicateId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ goog.require('axs.constants.Severity');
2222
axs.AuditRules.addRule({
2323
name: 'duplicateId',
2424
heading: 'An element\'s ID must be unique in the DOM',
25-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_html_02--an-elements-id-must-be-unique-in-the-dom',
25+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_html_02',
2626
severity: axs.constants.Severity.SEVERE,
2727
relevantElementMatcher: function(element) {
2828
return axs.browserUtils.matchSelector(element, '[id]');

src/audits/FocusableElementNotVisibleAndNotAriaHidden.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ goog.require('axs.utils');
2323
axs.AuditRules.addRule({
2424
name: 'focusableElementNotVisibleAndNotAriaHidden',
2525
heading: 'These elements are focusable but either invisible or obscured by another element',
26-
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#-ax_focus_01--these-elements-are-focusable-but-either-invisible-or-obscured-by-another-element',
26+
url: 'https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_focus_01',
2727
severity: axs.constants.Severity.WARNING,
2828
relevantElementMatcher: function(element) {
2929
var isFocusable = axs.browserUtils.matchSelector(

0 commit comments

Comments
 (0)