-
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
38 changed files
with
2,202 additions
and
73 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,7 @@ <h3>Table Tests</h3> | |
passedXpaths: [ | ||
], | ||
failedXpaths: [ | ||
"/html[1]/body[1]/table[1]" | ||
] | ||
}, | ||
]; | ||
|
87 changes: 87 additions & 0 deletions
87
.../checker/accessibility/rules/table_headers_exists_ruleunit/table_bottom_headers_tfoot.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 content</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> |
Oops, something went wrong.