File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -634,6 +634,27 @@ function ariaAttributeReferences() {
634
634
placeholder . innerHTML = output ;
635
635
}
636
636
}
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
+ }
637
658
} ) ;
638
659
639
660
// spit out the index
You can’t perform that action at this time.
0 commit comments