aral,
@aral@mastodon.ar.al avatar

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines