GoogleChrome / dialog-polyfill

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

Server Side Rendering Support #169

Closed RehanSaeed closed 6 years ago

RehanSaeed commented 6 years ago

The JavaScript seems to assume that the Window object will exist.

samthor commented 6 years ago

This isn't part of the goal. The polyfill should only be loaded on the client. SSR-ing <dialog> is just as simple as adding the HTML to your pages, and maybe a dialog { display: none; } rule which is overridden.