Closed pkra closed 4 years ago
Elements with role=heading (and, say, aria-level=1) do not seem to be included in the heading outline.
Good catch, thanks for the report!
Thanks @rdeltour. Looks like
is too simple. I'm happy to try making a pull request.
Yes, I had a quick look at the code and came to the same conclusion. PR welcome of course!
@pkra I understand the technical issue.
But i'm wondering why not use a <h1>
tag in the first place instead of a <div>
?
@laudrain this was just a minimal example to exhibit the bug with minimal side effects.
Of course, the First Rule of ARIA applies but sometimes authors cannot use the native HTML element and sometimes there is no native element (e.g., there is no h7 and above).
@pkra understood.
I'm using Ace v1.1.1 on node v12.10 (ubuntu 19.10).
Elements with role=heading (and, say, aria-level=1) do not seem to be included in the heading outline.
E.g.,
leads to "Untitled BODY" in the outlines.