Files
ladybird/Tests/LibWeb/Crash/wpt-import/domxpath/variables-in-expression-crash.html
2025-10-03 13:16:11 +02:00

13 lines
391 B
HTML

<!DOCTYPE html>
<head>
<link rel="help" href="https://github.com/servo/servo/issues/36971">
<meta name="assert" content="Using variables in xpath expression should not crash.">
</head>
<body>
<script>
// The exact behaviour here is not defined. Firefox throws an error, Chrome doesn't.
document.evaluate("$foo", document.createElement("div"));
</script>
</body>