github web-platform-tests/wpt merge_pr_49102

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
10 months ago

The validity.customError should return true if the object element has a custom error

According to specifications 1:

  • The setCustomValidity(error) method steps are:
    1. Set error to the result of normalizing newlines given error.
    1. 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 uses setCustomValidity to set a custom
    error, the element's validity.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}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.