Opened 2 years ago

Last modified 18 months ago

#18933 new defect

dojox.layout.TableContainer creates inpropriate label for invalid non-form controls

Reported by: split Owned by:
Priority: undecided Milestone: 1.14
Component: DojoX Layout Version: 1.11.0
Keywords: Cc:
Blocked By: Blocking:

Description

[Accessibility violation]

dojox.layout.TableContainer? will create <label> for any child, and create "for" attribute pointing to it. No matter what tag the child is, "div", "span", "input" or anything.

However, based on HTML5 spec, https://www.w3.org/TR/html5/forms.html#the-label-element, the "for" attribute should be pointed to only "form controls". So if the targeted element is "div" or "span", it would be against HTML5 spec and cause accessibility violation.

Change History (2)

comment:1 Changed 2 years ago by dylan

Milestone: tbd1.13

comment:2 Changed 18 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.