role=switch

input 要素 switch 属性 (HTML)

role=switch (ARIA)

[3] ARIArole である switch は、オンとオフを切り替えられるウィジェットを表します。

仕様書

歴史

role=switch

[5] Modify description of the new "switch" role and identify as ARIA 1.1. · w3c/aria@e8ce919 ( 版) https://github.com/w3c/aria/commit/e8ce91965715fb244e02fb8dbcdb17e91b5270ed

<input switch>

[7] An HTML Switch Control | WebKit, https://webkit.org/blog/15054/an-html-switch-control/

[6] WebKit Features in Safari 17.4 | WebKit, https://webkit.org/blog/15063/webkit-features-in-safari-17-4/

[8] オンなのかオフなのかわからないことで定評がある糞UIだけど、 これだけ普及してるから対応しないわけにいかないよなあ

[9] >>6

On macOS, if you enable “Differentiate Without Color”, or on iOS, if you enable “On/Off Labels”, the switch will show accessibility indicators.

なぜこれがデフォルトの挙動になっていないのか。