mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
LibWeb: Queue form{Associated,Disabled}Callback where appropriate
This commit is contained in:
parent
0381c40cb4
commit
4cea5d43e6
Notes:
github-actions[bot]
2026-03-25 13:21:11 +00:00
Author: https://github.com/Lubrsi
Commit: 4cea5d43e6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8534
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/tcl3
6 changed files with 103 additions and 18 deletions
|
|
@ -59,6 +59,19 @@ bool HTMLFieldSetElement::is_disabled() const
|
|||
return false;
|
||||
}
|
||||
|
||||
void HTMLFieldSetElement::attribute_changed(FlyString const& name, Optional<String> const& old_value, Optional<String> const& value, Optional<FlyString> const& namespace_)
|
||||
{
|
||||
Base::attribute_changed(name, old_value, value, namespace_);
|
||||
|
||||
if (name == HTML::AttributeNames::disabled) {
|
||||
for_each_in_subtree_of_type<HTMLElement>([](auto& element) {
|
||||
if (element.is_form_associated_custom_element())
|
||||
element.update_face_disabled_state();
|
||||
return TraversalDecision::Continue;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-fieldset-elements
|
||||
GC::Ptr<DOM::HTMLCollection> const& HTMLFieldSetElement::elements()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue