[wp-trac] [WordPress Trac] #42780: Custom HTML Widget Linter should show error if checkbox doesn't have associated <label>
WordPress Trac
noreply at wordpress.org
Sun Dec 3 17:32:47 UTC 2017
#42780: Custom HTML Widget Linter should show error if checkbox doesn't have
associated <label>
--------------------------------+-----------------------------
Reporter: shooper | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: trunk
Severity: normal | Keywords:
Focuses: accessibility, rtl |
--------------------------------+-----------------------------
The Custom HTML Linter should show an error if an checkbox field does not
have an associated label element. This would be a good improvement for
accessibility.
To reproduce:
1. Create a custom HTML widget
2. Enter the following code:
{{{
<input type="checkbox"> Checkbox Label
}}}
3. No warning/error appears.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42780>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list