823.

A polyfill for the HTML switch element

blog.tomayac.com/2026/01/12/a-polyfill-for-the-html-switch-element

Safari 17.4 introduced a native HTML switch element, progressively enhancing <input type=“checkbox”> with the switch attribute. A polyfill is available for browsers lacking native support, adding accessibility features like ARIA roles and high-contrast support. The polyfill also handles writing modes and directionality, and is available on npm and GitHub.