Code RoomInline validation form accessibility
MediumPrep Room Coding #4456

Inline validation form accessibility

Vibe & agenticAlgorithms & data structuresMid–Senior~15 min

An AI agent built this signup field with inline validation. Sighted users see the red error fine. Explain why screen-reader and some low-vision users can't complete this form, and fix it.

Implement
audit_email_field(attrs: list[str]) → list[str]
Examples
in[["id=email","type=text","placeholder=Email","error-id=email-error"]]out["error-not-announced","error-not-described-by","missing-aria-invalid","no-programmatic-label","placeholder-not-a-label","wrong-input-type"]
in[["id=email","type=email","label-for=email","aria-invalid=true","aria-describedby=email-error","error-id=email-error","error-role=alert"]]out[]
in[["id=email","type=text","label-for=email"]]out["wrong-input-type"]
What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it (tests, edge cases, reading critically), and how you’d re-prompt or decompose to get it right.

0:00 of about 15 min

Vibe & agentic: describe the solution in plain language (or narrate it) and the coach grades your approach.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.