- From: TAMURA, Kent <notifications@github.com>
- Date: Tue, 09 Oct 2018 19:47:15 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 10 October 2018 02:47:49 UTC
Thank you for the comment. > Q: formdata event is fired last in sequence. ... I assume developers rarely want to validate data for ```formdata``` event because the data is not user-editable. The situation is same as ```<input type=hidden>```, which is not capable for validation. Adding ```formData``` IDL attribute to ```submit``` event, instead of adding new ```formdata``` event, would make it possible to cancel form submission by validating such data and ```preventDefault()```. However it isn't an option because ```new FormData(form)``` should collect data and it doesn't submit ```submit``` event. I'd like to start with the current design. If many developers want to cancel form submission in ```formdata``` event handlers, we can make the event cancelable later. > Q: 'formdata' is synchronous ... Yeah, form submission in ```formdata``` event handlers would make infinite loop. I'll add a flag to avoid re-entrancy. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/305#issuecomment-428419609
Received on Wednesday, 10 October 2018 02:47:49 UTC