Skip to content

Commit

Permalink
update aria definition for aside role and test case #1518
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Jan 17, 2024
1 parent 9755299 commit 574d852
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ export class ARIADefinitions {
},
"aside": {
implicitRole: ["complementary"],
validRoles: ["doc-dedication", "doc-example", "doc-footnote", "doc-pullquote", "doc-tip", "feed", "none", "note", "presentation", "region", "search"],
validRoles: ["doc-dedication", "doc-example", "doc-footnote", "doc-glossary", "doc-pullquote", "doc-tip", "feed", "none", "note", "presentation", "region", "search"],
globalAriaAttributesValid: true
},
"audio": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
/******************************************************************************
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.
*****************************************************************************/
-->

<html lang="en" id="id-32">

<head id="id-29">
<title id="id-36">Test aside aria role allowance</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>

<body id="id-9" aria-atomic="true">
<aside id="id-6" role='doc-glossary' aria-expanded="true" aria->
<h4>Epcot Center</h4>
<p>The Epcot Center is a theme park in Disney World, Florida.</p>
</aside>

<script type="text/javascript">
UnitTest = {
ruleIds: ["aria_role_valid"],
results: [
{
"ruleId": "aria_role_valid",
"value": [
"INFORMATION",
"PASS"
],
"path": {
"dom": "/html[1]/body[1]/aside[1]",
"aria": "/document[1]/generic[1]/doc-glossary[1]"
},
"reasonId": "Pass_0",
"message": "Rule Passed",
"messageArgs": [
"doc-glossary",
"aside"
],
"apiArgs": [],
"category": "Accessibility"
}
]
}
</script>

</body>

</html>

0 comments on commit 574d852

Please sign in to comment.