DEV Community

Discussion on: Introduction to the HTML Dialog Element

Collapse
 
gabbersepp profile image
Josef Biehler

Very interesting. I did not know this feature. But what are the main advantages against an own solution? I mean, it is not much effort to create a dialog with html and a bit css. Also if you use it within a website and not in electron (or similar stuff) you must provide a fallback for all those poor IE and Edge folks :-D

Collapse
 
aumayeung profile image
John Au-Yeung

It's a quick and dirty solution. Edge should support this element. IE has a polyfill

github.com/GoogleChrome/dialog-pol...

Collapse
 
khuongduybui profile image
Duy K. Bui

I'd argue that it's a quick but CLEAN solution, a commonly used, historically roll-your-own feature now official supported, much like everything else in JS world.

Thread Thread
 
aumayeung profile image
John Au-Yeung

It really depending on your requirements.

Is easy to style but other libraries may be closer to whatever design you are given.