You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the agnostic selector "//" in an xpath query along with the wildcard selector "*" will result in the query appearing to be a comment. Without this extension VSCode will properly identify the query (not as a comment).
Ex:
const $x= (xpath, contextNode = document) => document.evaluate(xpath, contextNode, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
const _$ = (textContent) => $x(`//*[text()="${textContent}"]`); /*everything to the right of "//*" is shown in bright green*/
The text was updated successfully, but these errors were encountered:
TJGinis
changed the title
Comments are not ignored when using xpath
XPath treated as a comment when using better-comments
Aug 28, 2024
Using the agnostic selector "//" in an xpath query along with the wildcard selector "*" will result in the query appearing to be a comment. Without this extension VSCode will properly identify the query (not as a comment).
Ex:
The text was updated successfully, but these errors were encountered: