In my app's tab loop, the <html>
tag occupies a tab stop. I'm looking to remove the <html>
tag from the tap loop.
I tried adding tabindex="-1"
to the <html>
tag, but on IE11 at least, that did not seem to remove the element from the tab loop. I'm close to spinning my own logic using JS to "skip" to the next focusable element if document.activeElement === <html>
, but I'm wondering if there's an easier way.
The solution needs to be supported cross the major browsers: IE11, Edge, FF, Chrome, Safari.
Any ideas?