OLD | NEW |
1 <?php | 1 <?php |
2 header("Suborigin: foobar"); | 2 header("Suborigin: foobar"); |
3 ?> | 3 ?> |
4 <!DOCTYPE html> | 4 <!DOCTYPE html> |
5 <html> | 5 <html> |
6 <head> | 6 <head> |
| 7 <meta charset="utf-8"> |
7 <title>Validate behavior of document.domain</title> | 8 <title>Validate behavior of document.domain</title> |
8 <script src="/resources/testharness.js"></script> | 9 <script src="/resources/testharness.js"></script> |
9 <script src="/resources/testharnessreport.js"></script> | 10 <script src="/resources/testharnessreport.js"></script> |
10 </head> | 11 </head> |
11 <script> | 12 <script> |
12 assert_equals(document.domain, "127.0.0.1", "document.domain should not be affec
ted by the suborigin."); | 13 assert_equals(document.domain, '127.0.0.1', |
| 14 'document.domain should not be affected by the suborigin.'); |
13 done(); | 15 done(); |
14 </script> | 16 </script> |
15 </html> | 17 </html> |
OLD | NEW |