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 659cb85 commit a40edfbCopy full SHA for a40edfb
src/index.ts
@@ -497,7 +497,7 @@ export class Matcher {
497
method = '==';
498
}
499
const value = matcher[7] || matcher[8];
500
- source += `const attrs = el.attributes;for (const key in attrs){const val = attrs[key]; if (key == "${attr_key}" && val ${method} "${value}"){return true;}} return false;`;
+ source += `var attrs = el.attributes;for (var key in attrs){const val = attrs[key]; if (key == "${attr_key}" && val ${method} "${value}"){return true;}} return false;`;
501
} else {
502
source += 'if (el.tagName != ' + JSON.stringify(tagName) + ') return false;';
503
0 commit comments