Investigate setCustomValidity
ValidityState
APIs
#2017
Labels
Milestone
setCustomValidity
ValidityState
APIs
#2017
modern browsers allow to propagate the valid/invalid state of native element via
setCustomValidity
ValidityState
APIs.In combination with css pseudo-selector
:invalid
this could shrink the size of our lib and the markup changes after validation to a minimum.we should check whether we can apply our feature set to this api and drop the redundant functionality
see
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Constraint_validation_process
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation#Constraint_API%27s_element.setCustomValidity()
https://developer.mozilla.org/en-US/docs/Web/API/ValidityState
The text was updated successfully, but these errors were encountered: