I can't find anything in the HTML5 doc that talks about nested forms. I'm sure it's listed on some page, somewhere (perhaps a changelog), but if not, should I assume that no-mention is the same as acceptable?
Additionally, the HTML4 doc doesn't mention it. Perhaps it's been permitted all along and I was adhering to old standards.
XHTML1.0
form must not contain other form elements.
HTML 3.0
There can be several forms in a single document, but the FORM element can't be nested.
Every form must be enclosed within a FORM element. There can be several forms in a single document, but the FORM element can't be nested. The browser is responsible for handling the input focus, i.e. which field will currently get keyboard input.
No, nested forms are forbidden. This means A FORM has a mandatory start tag, mandatory end tag and can contain anything in %block or SCRIPT, except other FORMs.
First — what is a nested form? It is, as it's name suggests, a form within a form. More specifically, the nested form is creating or manipulating a model that differs from the model the parent form is for.
Though you can have several <form> elements in one HTML page, you cannot nest them. Show activity on this post. Form nesting can be achieved with new HTML5 input element's form attribute.
The HTML5 document does mention it in the section you link above:
Content model
Flow content, but with no form element descendants.
"Content model" means "what this element may contain". So no, nested forms are not allowed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With