| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <input type="url" id="input1" value=" homepage " /> | |
| 5 <input type="url" id="input2" value="home
page" /> | |
| 6 <script> | |
| 7 test(function() | |
| 8 { | |
| 9 var input = document.getElementById("input1"); | |
| 10 assert_equals(input.value, "homepage"); | |
| 11 input.value = " home page "; | |
| 12 assert_equals(input.value, "home page"); | |
| 13 input.value = "home\u000Apage"; | |
| 14 assert_equals(input.value, "homepage"); | |
| 15 input.value = "home\u000Dpage"; | |
| 16 assert_equals(input.value, "homepage"); | |
| 17 input.value = "home\u000D\u000Apage"; | |
| 18 assert_equals(input.value, "homepage"); | |
| 19 input = document.getElementById("input2"); | |
| 20 assert_equals(input.value, "homepage"); | |
| 21 }, "Input type url with line break and leading-trailing whitespace should be str
ipped"); | |
| 22 </script> | |
| OLD | NEW |