Skip to content

Commit

Permalink
Update w3 roles link url
Browse files Browse the repository at this point in the history
The previous links lead to a 404 page on w3.org. I've updated all
references to point to the current url.

It would probably be a good idea to check the rest of the links in the
application.
  • Loading branch information
SeanMcP committed Jan 15, 2019
1 parent fb2f4df commit 594cb3e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/rules/aria-role.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ will result in the desired behavior not being available to the user.

You can find a list of valid ARIA roles, along with descriptions and information
on additional required attributes, on the
[WAI-ARIA](http://www.w3.org/TR/wai-aria/roles#roles_categorization) site.
[WAI-ARIA](http://www.w3.org/WAI/PF/aria/roles#roles_categorization) site.


## options
Expand All @@ -33,4 +33,4 @@ on additional required attributes, on the

## See also

- [This document](https://www.w3.org/TR/wai-aria/roles) from w3.org - Google Audit defs [AX_ARIA_01](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-defs#ax_aria_01)
- [This document](https://www.w3.org/WAI/PF/aria/roles) from w3.org - Google Audit defs [AX_ARIA_01](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-defs#ax_aria_01)
4 changes: 2 additions & 2 deletions docs/rules/deprecated/valid-aria-role.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ will result in the desired behavior not being available to the user.

You can find a list of valid ARIA roles, along with descriptions and information
on additional required attributes, on the
[WAI-ARIA](http://www.w3.org/TR/wai-aria/roles#roles_categorization) site.
[WAI-ARIA](http://www.w3.org/WAI/PF/aria/roles#roles_categorization) site.


## options
Expand All @@ -33,4 +33,4 @@ on additional required attributes, on the

## See also

- [This document](https://www.w3.org/TR/wai-aria/roles) from w3.org - Google Audit defs [AX_ARIA_01](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-defs#ax_aria_01)
- [This document](https://www.w3.org/WAI/PF/aria/roles) from w3.org - Google Audit defs [AX_ARIA_01](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-defs#ax_aria_01)
2 changes: 1 addition & 1 deletion docs/rules/img-uses-alt.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ an alternate text for an image, if the image cannot be displayed.
## See also

- [This document](https://dev.w3.org/html5/alt-techniques) from dev.w3.org
- [This document](https://www.w3.org/TR/wai-aria/roles#presentation) from w3.org
- [This document](https://www.w3.org/WAI/PF/aria/roles#presentation) from w3.org
4 changes: 2 additions & 2 deletions src/rules/aria-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const roles = Object.keys(role);

export default [{
msg: 'Elements with ARIA roles must use a valid, non-abstract ARIA role.',
url: 'https://www.w3.org/TR/wai-aria/roles',
url: 'https://www.w3.org/WAI/PF/aria/roles',
AX: 'AX_ARIA_01',
test(tagName, props) {
const hasRole = hasProp(props, 'role');
Expand Down Expand Up @@ -37,5 +37,5 @@ will result in the desired behavior not being available to the user.
You can find a list of valid ARIA roles, along with descriptions and information
on additional required attributes, on the
[WAI-ARIA](http://www.w3.org/TR/wai-aria/roles#roles_categorization) site.
[WAI-ARIA](http://www.w3.org/WAI/PF/aria/roles#roles_categorization) site.
`;
2 changes: 1 addition & 1 deletion src/rules/img-uses-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default [{
{
tagName: 'img',
msg: 'The `alt` prop cannot be empty string if role="presentation" is not set.',
url: 'https://www.w3.org/TR/wai-aria/roles#presentation',
url: 'https://www.w3.org/WAI/PF/aria/roles#presentation',
test(tagName, props) {
const hidden = hiddenFromAT(props);
const empty = props.alt === '';
Expand Down
4 changes: 2 additions & 2 deletions src/rules/valid-aria-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const roles = Object.keys(role);

export default [{
msg: 'Elements with ARIA roles must use a valid, non-abstract ARIA role.',
url: 'https://www.w3.org/TR/wai-aria/roles',
url: 'https://www.w3.org/WAI/PF/aria/roles',
AX: 'AX_ARIA_01',
test(tagName, props) {
warnRuleDeprecated('valid-aria-role', 'aria-role');
Expand Down Expand Up @@ -39,5 +39,5 @@ will result in the desired behavior not being available to the user.
You can find a list of valid ARIA roles, along with descriptions and information
on additional required attributes, on the
[WAI-ARIA](http://www.w3.org/TR/wai-aria/roles#roles_categorization) site.
[WAI-ARIA](http://www.w3.org/WAI/PF/aria/roles#roles_categorization) site.
`;

0 comments on commit 594cb3e

Please sign in to comment.