dialog-polyfill icon indicating copy to clipboard operation
dialog-polyfill copied to clipboard

Polyfill Demo not working in IE11

Open JSMike opened this issue 2 years ago • 1 comments

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.

https://github.com/GoogleChrome/dialog-polyfill/blob/5033aac1b74c44f36cde47be3d11f4756f3f8fda/index.html#L159 IE11 doesn't support arrow functions https://caniuse.com/?search=arrow%20function

https://github.com/GoogleChrome/dialog-polyfill/blob/5033aac1b74c44f36cde47be3d11f4756f3f8fda/index.html#L117 event.error is undefined

JSMike avatar Sep 03 '21 16:09 JSMike

error.message exists in ie11.

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

JSMike avatar Sep 03 '21 16:09 JSMike