(I already checked this question and the attributes linked do not work for me.)
I have a h1
tag containing a dropdown which activates onclick. The W3C Validator is complaining here:
<h1 class='dropdown-toggle' id='mylist'
data-toggle='dropdown'
aria-haspopup='true'
aria-expanded='true'
role='button'>
Apparently a role='button'
can't be assigned to h1
. Now the question is: which role can I assign to a h1
? The W3C's long list of role attributes does not really help finding a solution.