~/talk

Make form validation fun again

Talkat РИТ++ 2017 · 2017-06-05..06-06· [web-platform, frontend-architecture]
links:none on file
slides:none on file

Demonstrates using the HTML5 constraint validation API to avoid heavy JS: checkValidity vs reportValidity (check returns boolean and fires invalid; report shows the system bubble but Chrome forces focus and blocks blur), setCustomValidity and pattern+title (custom messages via setCustomValidity and title for pattern errors). Covers validity object fields (tooLong, rangeUnderflow, typeMismatch), willValidate/will‑participate quirks, maxlength/defaultValue surprises, :placeholder-shown and :in-range/:out-of-range pseudo‑classes, and a JS pattern to gather and render all field errors.

AI-written summary · about

  1. 0:00Introduction
  2. 3:18API Constraint Validation basics
  3. 10:33Required and string length
  4. 15:32Patterns and custom messages
  5. 20:42New field types: email phone url
  6. 25:28Numeric fields specifics
  7. 30:23Validation on input blur
  8. 33:16Constraints bypass architecture
  9. 36:52Error collection custom handling
  10. 41:44Conclusion Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.