mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibWeb/HTML: Update submit-button-related spec text
Corresponds to 69110cba07
This commit is contained in:
parent
29d5eda02d
commit
f4d3a01d32
Notes:
github-actions[bot]
2025-02-12 23:47:02 +00:00
Author: https://github.com/AtkinsSJ
Commit: f4d3a01d32
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3555
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 9 additions and 19 deletions
|
@ -252,8 +252,8 @@ bool FormAssociatedElement::is_candidate_for_constraint_validation() const
|
|||
auto const& button_element = as<HTMLButtonElement>(html_element);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element%3Abarred-from-constraint-validation
|
||||
// If the type attribute is in the Reset Button state or the Button state, the element is barred from constraint validation.
|
||||
if (button_element.type_state() == HTMLButtonElement::TypeAttributeState::Button || button_element.type_state() == HTMLButtonElement::TypeAttributeState::Reset)
|
||||
// If the element is not a submit button, the element is barred from constraint validation.
|
||||
if (!button_element.is_submit_button())
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue