1
0
Fork 0
firefox/testing/web-platform/tests/domxpath/xpath-evaluate-crash.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
623 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>Evaluating XPath expressions with orhpaned Attr as context node doesn't crash</title>
<link rel=author href="mailto:jarhar@chromium.org">
<link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1236967">
<script src="/resources/testharnessreport.js"></script>
<body>
<script>
for (const expression of [
"..",
"parent",
"ancestor::*",
"ancestor-or-self::*",
"following::*",
"preceding::*",
]) {
const orphanedAttr = document.createAttribute("foo");
new XPathEvaluator().evaluate(expression, orphanedAttr, null, 2);
}
</script>