Catatan rilis ditulis dalam bahasa Inggris.
Form validation: the checks every sign-up and checkout relies on
Form validation now works the way it does in every mainstream browser, so the sign-up, checkout and contact forms that real sites ship behave correctly. The engine understands a form's own rules: a required field left empty, an email or web-address field holding something that is not one, a field that must match a pattern or stay within a length or a number range, are all recognized as invalid, with the same messages browsers show. A page's script can ask a single field or a whole form whether it is valid, set its own custom error message, and have the form refuse to submit until everything is correct, exactly as the standard describes. And pages can style their fields on validity: the rules that turn a bad field red or a good one green now match the field's real state and update as you type, because the styling and the script read from one shared validity check instead of disagreeing. This is a general capability that lifts every form on the web; pages without form validation are unchanged. It moves the overall platform score to 68.
Apa yang berubah
3 perubahan- API web dan DOMFields know when they are invalid. A required field left empty, an email or web-address field with a malformed value, a field that breaks its pattern, length limits or number range, are now correctly flagged, with the same wording a mainstream browser uses. A script can read any field's validity, set a custom error, and a form will not submit until its fields are valid.
- API web dan DOMPages can style valid and invalid fields. The rules that color a bad field red or a good one green (invalid, valid, in-range, out-of-range) now match the field's actual validity and change live as the value changes, so form feedback looks and behaves as authored.
- RenderingStyling and scripting finally agree. The visual state and the scripted check now come from one shared validity engine, so a field a page marks invalid in code is the same field it paints red, and vice versa, with no mismatch.















