| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <head> |
| 3 <script src="/resources/testharness.js"></script> |
| 4 <script src="/resources/testharnessreport.js"></script> |
| 5 <script> |
| 6 </script> |
| 7 </head> |
| 8 <body> |
| 9 |
| 10 <script> |
| 11 if (document.location.hostname == "127.0.0.1") { |
| 12 document.location.hostname = "subdomain.example.test"; |
| 13 } else { |
| 14 test(function() { |
| 15 document.domain = 'EXAMPLE.TEST'; |
| 16 assert_equals(document.domain, 'example.test'); |
| 17 |
| 18 document.domain = 'subdomain.eXamPle.tEst'; |
| 19 assert_equals(document.domain, 'subdomain.example.test'); |
| 20 }, 'document.domain goes through proper canonicalization.'); |
| 21 } |
| 22 </script> |
| 23 |
| OLD | NEW |