Postel's Law
Be liberal in what you accept and conservative in what you send.
See it on the 3D treeGoing deeper
Also called the robustness principle, it comes from Jon Postel's work on early internet protocols. In interface design it means accepting reasonable variations in input and producing clean, predictable output. In software protocols it is debated, because tolerating bad input can entrench errors and create security problems.
Why it matters
It shifts the work of tidying input from people to the system.
In practice
A phone field accepts spaces, brackets and dashes, then stores and displays the number in one consistent format.
Common mistake
Guessing at ambiguous input, such as a numeric date, without showing the person how it was interpreted.
Connected terms
- Form ValidationValidation should accept sensible variations before asking someone to correct anything.