Re: [whatwg] Document with a single input[type=radio]?

This is an authoring requirement, not a browser implementation requirement. In practice, it means conformance checkers (aka validators) should error for lone radio buttons.



From: Mikko Rantalainen <mikko.rantalainen@peda.net>
Sent: Apr 7, 2016 7:49 AM
To: whatwg@lists.whatwg.org
Subject: [whatwg] Document with a single input[type=radio]?

The spec says in 4.10.5.1.16 Radio Button state (type=radio)


https://html.spec.whatwg.org/multipage/forms.html#radio-button-state-%28type=radio%29

"A document must not contain an input element whose radio button group
contains only that element."

What this is supposed to mean in practice? Could this sentence be
dropped because this does not match real world browser behavior?

(A streaming browser will may hit this case after parsing the first
radio button element in the document. Then what?)

--
Mikko

Received on Thursday, 7 April 2016 11:52:12 UTC