mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/HTML: Implement report_validity
This implements the previously stubbed out `report_validity` method. The specification is not very clear on how to exactly report the validity. For now, we bring the first visible invalid control into view and focus it. In the future, however, it would make sense to support more complex scenarios and be more aligned with the other implementations.
This commit is contained in:
committed by
Shannon Booth
parent
296d9d74d8
commit
5c578b6057
Notes:
github-actions[bot]
2025-05-13 21:40:10 +00:00
Author: https://github.com/skyz1 Commit: https://github.com/LadybirdBrowser/ladybird/commit/5c578b60571 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4578 Reviewed-by: https://github.com/Psychpsyo Reviewed-by: https://github.com/shannonbooth ✅
@@ -35,7 +35,7 @@ interface HTMLSelectElement : HTMLElement {
|
||||
readonly attribute ValidityState validity;
|
||||
[FIXME] readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
[FIXME] boolean reportValidity();
|
||||
boolean reportValidity();
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
undefined showPicker();
|
||||
|
||||
Reference in New Issue
Block a user