Truly independent web browser
LibWeb: Drop the ad-hoc optgroup insertion steps
Shannon Booth9e23eff6c40f
diff --git a/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp b/Libraries/LibWeb/HTML/HTMLOptGroupElement.cppindex d1c2581e99d..56e3a4e5072 100644--- a/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp+++ b/Libraries/LibWeb/HTML/HTMLOptGroupElement.cpp@@ -19,16 +19,6 @@ HTMLOptGroupElement::HTMLOptGroupElement(DOM::Document& document, DOM::QualifiedHTMLOptGroupElement::~HTMLOptGroupElement() = default;-void HTMLOptGroupElement::inserted()-{- Base::inserted();-- // AD-HOC: We update the selectedness of our <select> parent here,- // to ensure that the correct <option> is selected after an <optgroup> is dynamically inserted.- if (is<HTMLSelectElement>(*parent()) && first_child_of_type<HTMLOptionElement>())- static_cast<HTMLSelectElement&>(*parent()).update_selectedness();-}-void HTMLOptGroupElement::attribute_changed(Utf16FlyString const& name, Optional<Utf16String> const& old_value, Optional<Utf16String> const& value, Optional<Utf16FlyString> const& namespace_){Base::attribute_changed(name, old_value, value, namespace_);diff --git a/Libraries/LibWeb/HTML/HTMLOptGroupElement.h b/Libraries/LibWeb/HTML/HTMLOptGroupElement.hindex d00d6db3b10..7f2a51d768a 100644--- a/Libraries/LibWeb/HTML/HTMLOptGroupElement.h+++ b/Libraries/LibWeb/HTML/HTMLOptGroupElement.h@@ -26,7 +26,6 @@ private:HTMLOptGroupElement(DOM::Document&, DOM::QualifiedName);virtual bool is_html_optgroup_element() const final { return true; }- virtual void inserted() override;virtual void attribute_changed(Utf16FlyString const& name, Optional<Utf16String> const& old_value, Optional<Utf16String> const& value, Optional<Utf16FlyString> const& namespace_) override;};