-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
480 additions
and
9 deletions.
There are no files selected for viewing
File renamed without changes.
87 changes: 87 additions & 0 deletions
87
...cessibility/rules/table_headers_exists_ruleunit/table_bottom_headers_with_association.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> | ||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<head> | ||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
<title>Data table is missing one row header</title> | ||
<style type="text/css"> | ||
#vertical-2 thead,#vertical-2 tbody, th, td{ | ||
border: 1px solid black; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
<table id="vertical-2"> | ||
<caption>Bottom headers</caption> | ||
|
||
<tbody> | ||
<tr> | ||
<td headers="header1">row 1</td> | ||
<td headers="header2">row 1</td> | ||
<td headers="header3">row 1</td> | ||
</tr> | ||
<tr> | ||
<td headers="header1">data</td> | ||
<td headers="header2">data</td> | ||
<td headers="header3">data</td> | ||
</tr> | ||
<tr> | ||
<td headers="header1">data</td> | ||
<td headers="header2">data</td> | ||
<td headers="header3">data</td> | ||
</tr> | ||
<tr> | ||
<th scope="col" id='header1'>Header 1</th> | ||
<th scope="col" id='header2'>Header 2</th> | ||
<th scope="col" id='header3'>Header 3</th> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<td colspan="4">Footer</td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
<script> | ||
UnitTest = { | ||
ruleIds: ["table_headers_exists"], | ||
results: [ | ||
{ | ||
"ruleId": "table_headers_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/table[1]", | ||
"aria": "/document[1]/table[1]" | ||
}, | ||
"reasonId": "Fail_1", | ||
"message": "Table has no headers identified", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...v2/checker/accessibility/rules/table_headers_exists_ruleunit/table_row_headers_bottom.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> | ||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<head> | ||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
<title>Data table</title> | ||
</head> | ||
<body> | ||
<table> | ||
<caption> | ||
Council budget 2018 | ||
</caption> | ||
<tbody> | ||
<tr> | ||
<td>Donuts</th> | ||
<td>3,000</td> | ||
<td>2,000</td> | ||
</tr> | ||
<tr> | ||
<td>Stationery</th> | ||
<td>18,000</td> | ||
<td>8,000</td> | ||
</tr> | ||
<tr> | ||
<th >Items</th> | ||
<th >Expenditure</th> | ||
<th >Other</th> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<script> | ||
UnitTest = { | ||
ruleIds: ["table_headers_exists"], | ||
results: [ | ||
{ | ||
"ruleId": "table_headers_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/table[1]", | ||
"aria": "/document[1]/table[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
81 changes: 81 additions & 0 deletions
81
...v2/checker/accessibility/rules/table_headers_exists_ruleunit/table_row_headers_middle.htm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> | ||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<head> | ||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
<title>Data table</title> | ||
</head> | ||
<body> | ||
<table> | ||
<caption> | ||
Council budget 2018 | ||
</caption> | ||
<tbody> | ||
<tr> | ||
<td></th> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td></th> | ||
<td></td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<th >Items</th> | ||
<th >Expenditure</th> | ||
<th >Other</th> | ||
</tr> | ||
<tr> | ||
<td>Donuts</th> | ||
<td>3,000</td> | ||
<td>2,000</td> | ||
</tr> | ||
<tr> | ||
<td>Stationery</th> | ||
<td>18,000</td> | ||
<td>8,000</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<script> | ||
UnitTest = { | ||
ruleIds: ["table_headers_exists"], | ||
results: [ | ||
{ | ||
"ruleId": "table_headers_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/table[1]", | ||
"aria": "/document[1]/table[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.