是否将 HTML <dialog> tag is an HTML element that allows you to create modal dialogs or pop-up windows. It's often used for things like login forms, confirmation messages, or displaying additional information without navigating away from the current page. The

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 个赞

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 个赞