Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/nodes/ParentNode-querySelector-underscore-local-name.xhtml - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<head>
<title>Element local name with an underscore in querySelector</title>
<meta charset="utf-8"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<data><_g><b>hey</b></_g></data>
<script>
/*<![CDATA[*/
"use strict";
test(() => {
assert_equals(document.querySelector("data > _g > b").textContent, "hey");
});
/*]]>*/
</script>
</body>
</html>