Skip to content

Commit 267ecb4

Browse files
Generated by 9c65b0e8f6c1bbe61bf8ec795dbbfd8033f2297b
1 parent deec148 commit 267ecb4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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)