nvda icon indicating copy to clipboard operation
nvda copied to clipboard

Nested span tags block forms mode for sliders in Firefox

Open chrisauclair opened this issue 10 years ago • 3 comments

If a div with a role of "slider" contains nested span tags, forms mode cannot be activated in Firefox. For example, this code works in all browser except for Firefox:

<div tabindex="0" role="slider" aria-valuenow="0.0" aria-valuemin="0" aria-valuemax="100" aria-label="seek bar" aria-valuetext="0:00">
    <div class="slider-text">
        <span class="text"><span>Loaded</span>: 0%</span>
    </div>
</div>

Forms mode works if the inner span tag is removed, but that's perfectly valid HTML.

This bug was discovered while doing accessibility testing on video.js.

chrisauclair avatar Mar 28 '16 14:03 chrisauclair

Any thoughts on this fairly old ticket @jcsteh

ehollig avatar Apr 18 '18 19:04 ehollig

It's debatable as to whether Firefox or NVDA is the more appropriate place to fix this. The fix is trivial in either case. I'm going to try to get it fixed in Firefox, so I filed Mozilla bug 1455511.

jcsteh avatar Apr 20 '18 04:04 jcsteh

I fixed this for Firefox 61.

jcsteh avatar Apr 30 '18 23:04 jcsteh