-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
XPath evaluates to current node for expression .. #38553
Copy link
Copy link
Closed
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-content/scriptRelated to the script threadRelated to the script threadC-has-manual-testcaseI-wrongAn incorrect behaviour is observed.An incorrect behaviour is observed.
Description
Describe the bug:
We should retrieve the parent node with .. as xpath. Instead, we still retrieve current node.
To Reproduce:
./mach run -r <following-file> --pref=dom_xpath_enabled
<button id="check">evaluate xpath for parent </button>
<script>
document.getElementById('check').addEventListener('click', () => {
const result2 = document.evaluate("..", document.getElementById("check"), null, null, null).iterateNext();
console.log(result2);
});
</script>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/domInteracting with the DOM from web contentInteracting with the DOM from web contentA-content/scriptRelated to the script threadRelated to the script threadC-has-manual-testcaseI-wrongAn incorrect behaviour is observed.An incorrect behaviour is observed.