Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/browsers/the-window-object/named-access-on-the-window-object/window-null-names.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset=utf-8>
<title>Named access with null characters</title>
<link rel="author" title="Ms2ger" href="ms2ger@gmail.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
test(function() {
var iframe = document.createElement("iframe")
iframe.name = "a\0b"
document.body.appendChild(iframe)
assert_equals(window["a\0b"], iframe.contentWindow)
assert_equals(window["ab"], undefined)
assert_equals(window["a"], undefined)
});
</script>