read-aloud icon indicating copy to clipboard operation
read-aloud copied to clipboard

aria-hidden = true marked elements aren't respected

Open boomboo opened this issue 1 month ago • 1 comments

[aria-hidden=true] is listed in ignoreTags (like .no-read-aloud) however unlike the class the attribute is ignored and the elements under it are still modified with read-aloud class.

boomboo avatar Nov 20 '25 22:11 boomboo

This is similar to https://github.com/ken107/read-aloud/issues/438 however I'm pretty sure my extension is the latest available version.

boomboo avatar Nov 20 '25 22:11 boomboo

Could you link to a URL where you encountered this problem? Would help a lot. Thanks

ken107 avatar Dec 11 '25 15:12 ken107

To be fair there wasn't, I just marked sections of a page using ublock so they wouldn't be read (eg. comments). But you could just create a local html file to check:

<html><body><p>Read this.</p><p aria-hidden="true">Don't read this.</p><p class="no-read-aloud">This won't be read.</p></body><html>

boomboo avatar Dec 11 '25 19:12 boomboo

it appears to be working for me, are you using Chrome or another browser?

Image

ken107 avatar Dec 11 '25 19:12 ken107

Lastest version of firefox

Image

boomboo avatar Dec 11 '25 21:12 boomboo

ah, thanks for that, forgot to copy this change over from main branch. Will appear in next release.

ken107 avatar Dec 11 '25 23:12 ken107