Skip to content

Commit 95c7d21

Browse files
author
Michael Cooper
committed
update aria-common
1 parent 09b6680 commit 95c7d21

File tree

6 files changed

+111
-217
lines changed

6 files changed

+111
-217
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<section class="section" id="ack_funders">
22
<h4>Enabling funders</h4>
3-
<p>This publication has been funded in part with U.S. Federal funds from the Department of Education, National Institute on Disability, Independent Living, and Rehabilitation Research (NIDILRR), initially under contract number ED-OSE-10-C-0067 and currently under contract number HHSP23301500054C. The content of this publication does not necessarily reflect the views or policies of the U.S. Department of Education, nor does mention of trade names, commercial products, or organizations imply endorsement by the U.S. Government.</p>
3+
<p>This publication has been funded in part with U.S. Federal funds from the Department of Education, National Institute on Disability, Independent Living, and Rehabilitation Research (NIDILRR), initially under contract number ED-OSE-10-C-0067, then under contract number HHSP23301500054C, and now under HHS75P00120P00168. The content of this publication does not necessarily reflect the views or policies of the U.S. Department of Education, nor does mention of trade names, commercial products, or organizations imply endorsement by the U.S. Government.</p>
44
</section>

common/biblio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ respecConfig.localBiblio = {
44
"aliasOf": "ACCNAME-AAM-1.1",
55
},
66
"ARIA-PRACTICES": {
7-
"aliasOf": "WAI-ARIA-PRACTICES-1.1",
7+
"aliasOf": "WAI-ARIA-PRACTICES-1.2",
88
},
99
"CORE-AAM": {
1010
"aliasOf": "CORE-AAM-1.1",

common/script/aria.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,27 @@ function ariaAttributeReferences() {
634634
placeholder.innerHTML = output;
635635
}
636636
}
637+
else if (
638+
placeholder &&
639+
(placeholder.textContent || placeholder.innerText) ===
640+
'All elements of the base markup except for some roles or elements that prohibit its use' &&
641+
item.roles.length
642+
) {
643+
// for prohibited roles the roles list just includes those roles which are prohibited... weird I know but it is what it is
644+
var sortedList = [];
645+
sortedList = item.roles.sort();
646+
//remove roletype from the sorted list
647+
const index = sortedList.indexOf('roletype');
648+
if (index > -1) {
649+
sortedList.splice(index, 1);
650+
}
651+
output += 'All elements of the base markup except for the following roles: ';
652+
for (var j = 0; j < sortedList.length-1; j++) {
653+
output += '<rref>' + sortedList[j] + '</rref>, ';
654+
}
655+
output += '<rref>' + sortedList[sortedList.length-1] + '</rref>';
656+
placeholder.innerHTML = output;
657+
}
637658
});
638659

639660
// spit out the index

0 commit comments

Comments
 (0)