blob: 4db29e4df078ccbf1da8eabea868a1b0aaf7b2bc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Datetime Input Test</title>
<script src="../../js/resources/js-test-pre.js"></script>
</head>
<body>
<p>The user-visible values of week 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="datetime"><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]);
var successfullyParsed = true;
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>