mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb: Make every HTMLElement potentially form-associated
This can be the case for form-associated custom elements, where any HTML element can be form-associated.
This commit is contained in:
Notes:
github-actions[bot]
2026-03-25 13:21:23 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/df32da5e86b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8534 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/tcl3
@@ -1817,7 +1817,7 @@ Web::WebDriver::Response WebDriverConnection::element_clear_impl(StringView elem
|
||||
|
||||
// -> otherwise
|
||||
// True if its value IDL attribute is an empty string, and false otherwise.
|
||||
return form_associated_element.value().is_empty();
|
||||
return form_associated_element.form_value().is_empty();
|
||||
}();
|
||||
|
||||
// 2. If element is a candidate for constraint validation it satisfies its constraints, and empty is true,
|
||||
|
||||
Reference in New Issue
Block a user