-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from Ms2ger/window-named-getter-null
Add a test for null characters in the name of an iframe.
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dir named-access-on-the-window-object | ||
window-indexed-properties.html | ||
window-indexed-properties-strict.html | ||
window-named-properties.html | ||
window-properties.html | ||
window-prototype-chain.html |
5 changes: 5 additions & 0 deletions
5
html/browsers/the-window-object/named-access-on-the-window-object/MANIFEST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
window-constructor.html | ||
window-location.html | ||
window-named-properties.html | ||
window-npo-setter.html | ||
window-null-names.html |
20 changes: 20 additions & 0 deletions
20
html/browsers/the-window-object/named-access-on-the-window-object/window-null-names.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!doctype html> | ||
<meta charset=utf-8> | ||
<title>Named access with null characters</title> | ||
<link rel="author" title="Ms2ger" href="ms2ger@gmail.com"> | ||
<link rel="help" href="http://www.whatwg.org/html/#window"> | ||
<link rel="help" href="http://www.whatwg.org/html/#dom-window-nameditem"> | ||
<link rel="help" href="http://dev.w3.org/2006/webapi/WebIDL/#named-properties-object"> | ||
<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> |