DEV Community

loading...

Discussion on: Exploring HTML dialog element with examples

Collapse
fahad07_khan profile image
Fahad Khan

Good information!
But what does it mean code below,
dialogPolyfill.registerDialog();
when I commenting this, It works too

Collapse
atapas profile image
Tapas Adhikary Author

That's the polyfill. It is added for the browsers where the support is not in built like, safari.. Also in Firefox latest, it will work without polyfill but the backdrop style will not work.

Chrome is very generous.. It works in chrome without the polyfill.

Thanks for reading through.. Appreciate.