xi / a11y-outline

web extension to navigate document outlines easily
https://addons.mozilla.org/firefox/addon/a11y-outline/
BSD 3-Clause "New" or "Revised" License
36 stars 3 forks source link

Headings undefined #7

Closed nico3333fr closed 6 years ago

nico3333fr commented 6 years ago

Hi there,

first, thanks a lot for this extension, really cool (and it works with websites that have enabled CSP!).

I've tested it on some of my websites (https://www.nicolas-hoffmann.net/ and https://rocssti.net/en/), and I had a strange bug: the extension provides the correct outline, but says headings are undefined.

undefined

The only difference that I have with these two examples is that there are served as application/xhtml+xml (I don't know why it creates an issue to be honest).

Hope you will find a workaround! Thanks a lot, Nicolas

xi commented 6 years ago

Thanks for reporting the issue!

The issue seems to be that I did case-sensitive matching on tag names in the underlying library. This should be fixed with https://github.com/xi/aria-api/commit/bebd51a953ae052d84b59e7a0f4f30a65f3447fd.

I will try to publish the fixed version soon.