Closed sytong closed 6 years ago
Does this polyfill work on IE11? https://github.com/inexorabletash/text-encoding/blob/master/README.md
It's experimental in IE not Javascript It looks like IE is the minority in support of TextEncoder https://caniuse.com/#search=TextEncoder . I've seen the above polyfill referenced by others as a workaround. Is there a reason why you need to specifically need to support IE?
Is there a reason why you need to specifically need to support IE?
According to:
IE is the second most used browser on desktop/laptop. We must support it.
It's experimental in IE not Javascript It looks like IE is the minority in support of TextEncoder https://caniuse.com/#search=TextEncoder .
By the definition of Experimental Technology in the MDN Web Docs, TextEncoder is considered experimental
because of either reason:
@sytong did the polyfill work for you?
I'm not going to argue semantics; or how broadly used IE is. Ultimately this library is dependent on TextEncoder and will not operate without it.
If the polyfill does work we'll update our documentation to inform developers in need of IE support that it is an option.
@sytong @ChristianDunst Re-opening this FYI. I've done some initial testing and as of eosjs2@0.0.12 you can provide custom encoding and decoding. I've tested and confirmed the polyfill https://github.com/inexorabletash/text-encoding works in IE11, I'm going to test in Edge and if it works there as well I will update the documentation to aid other developers in the future.
@sytong and @ChristianDunst Resolved in #64 documentation update. We've verified the polyfill works on IE11 and Edge.
I have added the text-encoding
polyfill. It works on both IE11 and Edge.
However, there is an another issue with IE11.
In /src/ripemd.js, Proxy
is used and IE11 is not supporting Proxy
and it cannot be polyfilled.
So eosjs now is NOT working on IE11.
@terrylks can you please share the code you're using? When I used our reference project I had no issues using the reference containers provided by Microsoft for signing transactions. Is this something other than transaction signing?
Thanks!
@terrylks it would also be helpful if this could be opened under a new issue. This was related to TextEncoder, please include the detailed error message and sample code to help reproduce.
I tried to use eosjs2 in IE11 and got this error:
ReferenceError: 'TextEncoder' is undefined
I notice that
TextEncoder
is an experimental feature in JavaScript is currently not supported in Internet Explorer. Do you have any suggestion about this?Reference: https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder#Browser_compatibility