Changed to after(errorEl) for the sake of screenreaders
→ Screenreaders don't automatically "see" DOM elements inserted before inputs
→ Inserting errors after the relevant input allows blind people to easily recieve these errors if the site uses happy.js
→ Where I learned this was: alistapart.com/article/designing-for-easy-interaction
Changed to after(errorEl) for the sake of screenreaders
→ Screenreaders don't automatically "see" DOM elements inserted before inputs → Inserting errors after the relevant input allows blind people to easily recieve these errors if the site uses happy.js → Where I learned this was: alistapart.com/article/designing-for-easy-interaction
Added role=alert for accessibility too