Type=date field should not accept invalid date strings though a user can type such strings On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS input.value is "2012-04-13" PASS document.getSelection().toString() == "+++" is false PASS input.value is "" PASS successfullyParsed is true TEST COMPLETE