1<!DOCTYPE html>
2<html>
3<head>
4    <title>HTML5 Sandbox: value of sandbox attribute must be an unordered set of unique space-separated tokens.</title>
5    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
6    <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
7    <link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#attr-iframe-sandbox" />
8    <meta name="assert" content="value of sandbox attribute must be an unordered set of unique space-separated tokens." />
9    <script src="/resources/testharness.js"></script>
10    <script src="/resources/testharnessreport.js"></script>
11</head>
12<body>
13    <script type="text/javascript">
14
15
16        var t = async_test("value of sandbox attribute must be an unordered set of unique space-separated tokens.");
17
18        function callback(event)
19        {
20            t.step(function(){
21                assert_true('sandbox' in document.createElement('iframe'));
22                assert_equals(event.data, "cookies are R/W");
23            });
24            t.done();
25        }
26
27        var timer = setTimeout(callback, 4000);
28        window.addEventListener("message", callback, false);
29    </script>
30    <div id=log></div>
31
32    <iframe style="display:none" src="iframe_sandbox_012.htm" sandbox="&#10ALLOW-SCRIPTS&#10allow-same-origin&#10"></iframe>
33
34</body>
35</html>
36
37