Avoid false positives for <article>/<nav> (ARIA)
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Mar 2019 22:32:41 +0000 (23:32 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Mar 2019 22:32:41 +0000 (23:32 +0100)
See #2713

wcfsetup/install/files/js/WoltLabSuite/Core/Bootstrap.js

index 5fc15aa66e840c87246bb8bd893061166f56ce33..54f204e61c2e36b0efc549ef39a8b08eaefa44ab 100644 (file)
@@ -103,11 +103,11 @@ define(
                },
                
                _initA11y: function() {
-                       elBySelAll('nav:not([aria-label]):not([role])', undefined, function(element) {
+                       elBySelAll('nav:not([aria-label]):not([aria-labelledby]):not([role])', undefined, function(element) {
                                elAttr(element, 'role', 'presentation');
                        });
                        
-                       elBySelAll('article:not([aria-label]):not([role])', undefined, function(element) {
+                       elBySelAll('article:not([aria-label]):not([aria-labelledby]):not([role])', undefined, function(element) {
                                elAttr(element, 'role', 'presentation');
                        });
                }