We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8103352 commit 6e22854Copy full SHA for 6e22854
README.md
@@ -142,7 +142,7 @@ In order to protect from some attacks we must check the content we want to use i
142
var elem = select(doc, "/xpath_to_interesting_element");
143
var uri = sig.references[0].uri; // might not be 0 - depending on the document you verify
144
var id = (uri[0] === '#') ? uri.substring(1) : uri;
145
- if (node.getAttribute('ID') != id && node.getAttribute('Id') != id)
+ if (elem.getAttribute('ID') != id && elem.getAttribute('Id') != id && elem.getAttribute('id') != id)
146
throw new Error('the interesting element was not the one verified by the signature')
147
`````
148
0 commit comments