Skip to content

Commit e5811ea

Browse files
author
Dennis Labordus
committed
Added some comments
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 7a0f50e commit e5811ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validators/CompasValidateSchema.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ export default class CompasValidateSchema extends LitElement {
136136
* For XPath to work correctly the default namespace of SCL needs to have a prefix to work.
137137
* The function evaluate expects HTML to be the default namespace.
138138
*
139+
* See https://developer.mozilla.org/en-US/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript
140+
* for more information on how XPath is working with evalaute and why this fix is needed.
141+
*
139142
* @param xpath - The XPath to rewrite to use a prefix 'scl' for the SCL Namespace.
140143
*/
141144
private rewriteXPathForDefaultNamespace(xpath: string): string {

0 commit comments

Comments
 (0)