Re: [w3c/webcomponents] Need callback for form submit data (#187)

Note: This comment is off topic.

> disable the UA's validation UI (without disabling validate on submit)

It's possible by a small amount of code.

- Add ```novalidate``` to a ```<form>```.
- Register ```submit``` event handler.
- The handler can call ```checkValidity()``` of the ```<form>``` and/or its associated controls, and can show your own UI for validation errors.
 - The handler should call ```event.preventDefault()``` to interrupt submission if the form is invalid.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/187#issuecomment-479784743

Received on Thursday, 4 April 2019 07:34:08 UTC