xml-crypto
xml-crypto copied to clipboard
Use this.idAttributes[0] when setting id attribute of element?
I noticed here that the id attribute for elements is set. Can we change the hard-coded "Id"
to this.idAttributes[0]
? That way if one passes in idAttribute
as an option to the SignedXml constructor, it will use that instead.
Basically, I'd like to be able to control whether "Id" or "ID" is outputted when I call SignedXml.computeSignature().
(I'm not familiar with xml-crypto, so my apologies if there's a good reason why it's not this way already.)