Files
sousa-gecko/testing/web-platform/tests/html/semantics/forms/the-label-element
Martin Robinson b3730c9180 Bug 2051588 [wpt PR 60994] - script: Stop treating <label> as a form-associated element, a=testonly
Automatic update from web-platform-tests
script: Stop treating `<label>` as a form-associated element

`<label>` was being treated as a form-associated element, but the
spec[^1] does not list it as one. This led to it being added to
`HTMLFormElement::controls`, but not removed consistently. This change
stops treating it as a special-case form-associated element which fixes
a panic in debug builds.

Signed-off-by: Martin Robinson <martin@abandonedwig.info>

[^1]: https://html.spec.whatwg.org/multipage/forms.html#form-associated-element

--

wpt-commits: 3d1f07ac4f60dd14f39e77513684958e9f894d95
wpt-pr: 60994
2026-07-10 09:22:27 +00:00
..