🎨 Features
- Broader support for HTMLLabelElement
control
.This supports nested / descendent input elements for HTMLLabelElement'scontrol
property and also supports other labelable elements, as described in the spec:https://html.spec.whatwg.org/multipage/forms.html#category-labelTo be fully spec-compliant, thecontrol
getter would ignorefor
element(s) that aren't labelable elements, and labelable elements would also include form-associated custom elements.I'm using a CSS selector for this, because that seemed like the most convenient approach, but if another approach would be better (e.g., for performance?), please let me know.Fixes #530. (#530)