| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Date Input Test</title> | |
| <script src="../../js/resources/js-test-pre.js"></script> | |
| </head> | |
| <body> | |
| <p>The user-visible values of date input fields should be localized if the platform has | |
| a LocalizedDate implementation. Otherwise, they should be in the HTML5 formats.</p> | |
| <form method="get" action="#"> | |
| <input type="date"><br> | |
| </form> | |
| <div id=console></div> | |
| <script> | |
| var input = document.getElementsByTagName("input")[0]; | |
| // Tue Apr 26 2011 18:56:20 GMT-0700 (PDT) which is Wed Apr 27 2011 01:56:20 GMT. | |
| input.valueAsDate = new Date(1303869380391); | |
| input.focus(); | |
| document.execCommand("SelectAll"); | |
| debug(input.type + ": value='" + input.value + "' visible='" + document.getSelection().toString() + "'"); | |
| document.body.removeChild(document.getElementsByTagName("form")[0]); | |
| </script> | |
| <script src="../../js/resources/js-test-post.js"></script> | |
| </body> | |
| </html> |