diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 7004a9c5349..30bc8627689 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -352,6 +352,7 @@ ExceptionOr Element::set_inner_html(String const& markup) return result.exception(); set_needs_style_update(true); + document().set_needs_layout(); return {}; }