-
Notifications
You must be signed in to change notification settings - Fork 50
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
The XADES-BES sign example does not work with IE11 #101
Comments
I do not have an IE11 machine handy but I did not see the use of a polyfill for webcrypto: https://github.com/PeculiarVentures/webcrypto-liner |
I have copied this example from readme.md from your repository: https://github.com/PeculiarVentures/xadesjs#in-the-browser The polyfill for webcrypto is included. If something is missing, please fix the example in readme.md. |
Looks like it's IE11 limitation. It throws an exception on appending a signature element to the XML document. // SignedXml.toString
doc.appendChild(sig); As I can see from this StackOverflow answer, a signature element must be created from XML document object. I'll pay attention to the problem |
Ok, so we can access the signature. But can we get the whole document with enveloped signature as it was in other browsers? |
Is solution to change lib or app code? |
It fixes IE11 limitation only but lib works fine for other browsers |
So change is in app code or in our library? |
app code |
Should we update our sample so future people don't encounter this? |
If I were to decide, then definitely. |
Hello,
The XADES-BES signature example from readme fails in IE11 with "WrongDocumentError". I have created a fiddle with it:
https://jsfiddle.net/tao24/4a3bog9d/4/
Also I have tracked the error up to "toString()" method in "SignedXml" definition in xmldsigjs:
However I don't know whether the issue is within xadesjs or xmldsigjs.
The text was updated successfully, but these errors were encountered: