Native date input / 브라우저 날짜 입력 실습
Requires Node.js and a modern browser; no npm packages.
From this extracted folder run: node preview.mjs
Open http://127.0.0.1:5599/before/ and http://127.0.0.1:5599/after/. If the port is busy, stop the server you started or change its listen port in your copy.
From after run: node check.mjs. Expected: 2 valid dates and 5 rejected values.
Only index.html type="text" -> type="date" was changed by Claude Code. All other original files are unchanged.
Dates are deliberately FIXED to 20-31 October 2026 for a repeatable exercise; not a live booking schedule. To use another range update BOTH HTML min/max and validation.mjs and its tests together.
Browser checks: empty rejected, 25 Oct accepted, 19 Oct blocked, 31 Oct accepted with Enter,390px no overflow. The browser popup layout differs by platform. No phone hardware/popup-click cross-browser testing.
Known UI limit: changing the field does not clear a previous success output. An invalid submission is blocked; do not interpret the old output as acceptance. For a real app clear prior feedback on input, and validate again on the server.
This is not a booking system. No storage, payment or network request.
