Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyfill Demo not working in IE11 #224

Open
JSMike opened this issue Sep 3, 2021 · 1 comment
Open

Polyfill Demo not working in IE11 #224

JSMike opened this issue Sep 3, 2021 · 1 comment

Comments

@JSMike
Copy link

JSMike commented Sep 3, 2021

image

SCRIPT1002: Syntax error
dialog-polyfill (159,58)

SCRIPT5007: Unable to get property 'toString' of undefined or null reference
dialog-polyfill (117,3)

This is referring to issues in the html file for the demo site, not the library.

const button = createButton('Show', options.modal ? () => dialog.showModal() : () => dialog.show());

IE11 doesn't support arrow functions https://caniuse.com/?search=arrow%20function

errorNode.textContent = event.error.toString();

event.error is undefined

@JSMike
Copy link
Author

JSMike commented Sep 3, 2021

error.message exists in ie11.

errorNode.textContent = event.error ? event.error.toString() : event.message;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant