-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
role=heading missing from heading outline #308
Comments
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. |
@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. |
Enables ace-extraction's getHeadings() to detect headings marked via role=heading; uses aria-level or the spec fallback. Fixes daisy#308
Enables ace-extraction's getHeadings() to detect headings marked via role=heading; uses aria-level or the spec fallback. Fixes daisy#308
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.
The text was updated successfully, but these errors were encountered: