GoogleChrome / dialog-polyfill

Polyfill for the HTML dialog element
BSD 3-Clause "New" or "Revised" License
2.45k stars 245 forks source link

data-only version without manual calls to javascript #167

Closed muelli closed 4 years ago

muelli commented 6 years ago

For my single page application which needs to run on IE11 I would appreciate a library for modals which does not require JavaScript calls but rather somehow notices that a <dialog> element has been created and acts accordingly. As far as I can see this is currently not possible.

samthor commented 4 years ago

Sorry. A lot of polyfills struggle with this issue. Fundamentally this is a huge reason to use Web Components which handle loading for you.

If this is important for you and you still (two years later...) want to support IE11, try a Web Components polyfill and a WC-based dialog.