Text Input Edge Cases

Harden text fields against what people type, paste and autofill: count graphemes with Intl.Segmenter rather than .length, ignore Enter during IME composition, normalise to NFC before comparing or storing, trim once when saving, never reject a name with a pattern, keep client and server limits in one unit, and test every field against a fixed corpus - ZWJ emoji, combining marks, right-to-left text, 4-byte characters, autofill. Use when "emoji breaks the character limit", "Enter submits while Japanese users are still typing", "names with apostrophes are rejected", "two usernames look identical" or text turns into question marks in the database. Not for form layout and error placement (form-design), the wording of hints and errors (content-design), WCAG conformance (accessibility-audit), or translating and formatting the product's UI per locale (locale-edge-sweep).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 3ecb352435

Frequently asked questions

npx get-skill add greenblacked/text-input-edge-cases