4 ms·
Can't speak for the OP, but more than once I've run into a case where I need the form tags to be nested in the DOM, for reasons relating to the page structure b
by Timwi 4y ago
Can't speak for the OP, but more than once I've run into a case where I need the form tags to be nested in the DOM, for reasons relating to the page structure but not the form contents. I would like nested form elements to just be allowed in the DOM, and if you submit the inner form then the outer should just be ignored, and if you submit the outer it should just submit all of the form values.
- artificialLimbs 4y agoWould this not be a(nother) good use case for htmx?
- TheRealPomax 4y agoThat sounds... confusing? What is the form supposed to do when you submit it if it has another form inside it but that form's values are... a separate form? Without a concrete use-case, I'm having a hard time understanding how this would make sense.
- rickstanley 4y agoToday we have the form attribute [0] to alleviate some cases. [0]: https://caniuse.com/form-attribute https://caniuse.com/form-attribute