Whitelist the HTML <dialog> tag?

Might it make sense to whitelist the HTML <dialog></dialog> element as a native feature in the Discourse Composer?

What use-case are you thinking of? I don’t think we’d want regular users to start adding popup dialogs to their posts? :sweat_smile:

3 Likes

For uses similar to <details></details> and popup footnotes.

It would provide another (now conventional) way for users to display content more compactly and more expressively. :boom:

I think any uses of <dialog> require some JS to actually open/close it? In which case, this is beyond simple html allowlisting, and would probably be theme/plugin territory.

7 Likes