You’d think folks writing the HTML spec would know the difference between an HTML attribute and inline JavaScript but you’d be mistaken and that’s why we can’t open a modal dialog without client-side JavaScript in 2024.
🤷
https://github.com/whatwg/html/issues/3567#issuecomment-373894397