A real button gives focus, Enter and Space keys, and a role for free dialog handles focus trapping and Escape without any JavaScript details/summary is a disclosure widget with keyboard support built in A div with onClick fakes all of this and usually gets it wrong I used to reach for <div onClick> out of habit. Then I started reading my own... Weiterlesen: Semantic HTML Elements I Stopped Replacing With Divs
Intelligence View
⚡ tsecurity.de Intelligence
Semantic HTML Elements I Stopped Replacing With Divs
A real button gives focus, Enter and Space keys, and a role for free dialog handles focus trapping and Escape without any JavaScript details/summary is a…
Intelligence Digest - bezpłatnie Codziennie najważniejsze wiadomości bezpieczeństwa · można pobrać w każdej chwili