mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-05 08:06:09 +00:00
LibWeb: Reset form association when the element's form attribute changes
This commit is contained in:
committed by
Andrew Kaster
parent
23fb1209af
commit
960dcf0e56
@@ -97,10 +97,8 @@ void HTMLImageElement::apply_presentational_hints(CSS::StyleProperties& style) c
|
||||
});
|
||||
}
|
||||
|
||||
void HTMLImageElement::attribute_changed(FlyString const& name, Optional<String> const& value)
|
||||
void HTMLImageElement::form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value)
|
||||
{
|
||||
HTMLElement::attribute_changed(name, value);
|
||||
|
||||
if (name == HTML::AttributeNames::crossorigin) {
|
||||
m_cors_setting = cors_setting_attribute_from_keyword(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user