aral, 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.
🤷
PS. What would be great to have is:
<dialog modal open></dialog>
So that a modally-open dialog can be streamed from the server without requiring client-side JavaScript to trigger it open when it loads.
https://github.com/whatwg/html/issues/3567#issuecomment-373894397