The validity.customError
should return true if the object element has a custom error
According to specifications 1:
- The
setCustomValidity(error)
method steps are: -
- Set error to the result of normalizing newlines given error.
-
- Set the custom validity error message to error.
element.validity.customError
:- Returns true if the element has a custom error; false otherwise.
When the object element usessetCustomValidity
to set a custom
error, the element'svalidity.customError
should be set to true.
HTMLObjectElement
does not need to override related functions.
Bug: 40781343
Change-Id: I99500d2ffed863ba9ed7c760c36ca6d0c08c6978
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5999040
Reviewed-by: Joey Arhar jarhar@chromium.org
Commit-Queue: Peng Zhou zhoupeng.1996@bytedance.com
Cr-Commit-Position: refs/heads/main@{#1381597}