Re:Browsers, JSON, and FormData
by Timwi on Saturday November 12, 2022 @12:11PM
(#33574944)
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.
[ Parent
| on HN ]
Re:Browsers, JSON, and FormData
by artificialLimbs on Saturday November 12, 2022 @12:31PM
(#33575159)
Would this not be a(nother) good use case for htmx?
Re:Browsers, JSON, and FormData
by TheRealPomax on Saturday November 12, 2022 @01:54PM
(#33575877)
That 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.
Re:Browsers, JSON, and FormData
by rickstanley on Saturday November 12, 2022 @02:16PM
(#33576091)
Today we have the form attribute [0] to alleviate some cases.