mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Destroy associated navigable when <object> is removed from DOM
This commit is contained in:
parent
fc0d447adb
commit
68440ed02d
Notes:
sideshowbarker
2024-07-17 03:59:29 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/68440ed02d Pull-request: https://github.com/SerenityOS/serenity/pull/23996
2 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,11 @@ void HTMLObjectElement::form_associated_element_attribute_changed(FlyString cons
|
|||
}
|
||||
}
|
||||
|
||||
void HTMLObjectElement::form_associated_element_was_removed(DOM::Node*)
|
||||
{
|
||||
destroy_the_child_navigable();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-object-data
|
||||
String HTMLObjectElement::data() const
|
||||
{
|
||||
|
|
|
@ -36,6 +36,7 @@ public:
|
|||
virtual ~HTMLObjectElement() override;
|
||||
|
||||
virtual void form_associated_element_attribute_changed(FlyString const& name, Optional<String> const& value) override;
|
||||
virtual void form_associated_element_was_removed(DOM::Node*) override;
|
||||
|
||||
String data() const;
|
||||
void set_data(String const& data) { MUST(set_attribute(HTML::AttributeNames::data, data)); }
|
||||
|
|
Loading…
Reference in a new issue