Form Helper markup missing ARIA attributes for accessible forms
0 reputation · 30 Apr 2024, 01:24 UTC
Symptom
The Form Helper in CodeIgniter 4 generates form markup that lacks ARIA labels, fieldset/legend groupings, and explicit label‑for associations, leaving accessibility to the developer.
Because the helper does not enforce semantic attributes, teams must decide whether to rely on the default output or to create custom view components that inject the needed accessibility features.
This decision affects consistent error messaging, focus management, and the accessibility of CSRF‑protected or dynamically updated forms.
Should the Form Helper be extended to inject ARIA attributes automatically?
Is wrapping form_open() with a reusable view component sufficient to guarantee label‑for and fieldset/legend structures?
How does CSRF token regeneration impact accessibility when forms are updated via AJAX?