commit | fd96c10c2cad4b0382e0ea4ce875f1cd4b83f28f | [log] [tgz] |
---|---|---|
author | Kent Tamura <tkent@chromium.org> | Mon May 20 08:54:55 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 20 08:54:55 2019 |
tree | c0df07f44eea6a0b98f7e023e4d1d36a2b590206 | |
parent | b8b5266d74b69bf90212923f02220a68da6febce [diff] |
Form-associated custom elements: Support the |anchor| argument of setValidity() This CL follows the latest specification PR; https://github.com/whatwg/html/pull/4383 Add the |anchor| argument to setValidity(). ElementInternals has a data member to store it. ListedElement shows a validation bubble on ValidationAnchor() result, which returns the data member if it's not null, returns the target element otherwise. Internals::isValidationMessageVisible() is updated so that it asks ValidationMessageClient directly because we can show validation bubble on any elements. Bug: 905922 Change-Id: I20e1bdfeed6ab2635fd3f171e5160feeba170681 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614644 Commit-Queue: Kent Tamura <tkent@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#661295}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .