randomly crafting little drop-in accessibility snippets... document.querySelector("[role='button']").addEventListener('keyup', function(e) { if (e.keyCode === 32) { e.preventDefault(); http://this.click (); } });
-
-
same difference, no? or far future compat issue?
-
Oh yeah, it’s just nicer and more readable. But if you need ancient browser support then it’s a no-go indeed.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.