xml-crypto icon indicating copy to clipboard operation
xml-crypto copied to clipboard

Use this.idAttributes[0] when setting id attribute of element?

Open lukehorvat opened this issue 10 years ago • 4 comments

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.)

lukehorvat avatar Jun 24 '14 13:06 lukehorvat