[whatwg/dom] HTMLFieldsetElements::elements should probably be HTMLFormControlsCollection, too (#871)

[`HTMLFormElement::elements`](https://html.spec.whatwg.org/#the-form-element:htmlformcontrolscollection) is a `HTMLFormControlsCollection`, while [`HTMLFieldsetElement::elements`](https://html.spec.whatwg.org/#the-fieldset-element:htmlcollection).

Are there plans to use the former type for both properties? After all, the set of controls that are descendants of a `fieldset` element, are by extension form controls, too, no?

Another annoyance which surfaces, depending on use, is that a `HTMLFormControlsCollection` elegantly allows multiple controls *with the same name* be used as a `RadioNodeList` (peculiar choice for a control collection but probably historic reasons?) while accessing an element of a fieldset by name always returns *the first element with that name*, instead. This disparity is very odd and far from ideal, I think.

Am I onto something here?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/871

Received on Friday, 12 June 2020 12:29:46 UTC