LibWeb: Fix is<HTML::HTMLProgressElement>() check

Previously HTMLProgressElement implemented is_html_input_element() not
is_html_progress_element(), so is_html_progress_element() defaulted to
always returning false. This broke is<HTML::HTMLProgressElement>().
This commit is contained in:
MacDue 2023-03-16 23:50:11 +00:00 committed by Andreas Kling
parent 8bba53bdff
commit a2f3b6543b
Notes: sideshowbarker 2024-07-17 21:11:12 +09:00

View file

@ -40,7 +40,7 @@ private:
HTMLProgressElement(DOM::Document&, DOM::QualifiedName);
// ^DOM::Node
virtual bool is_html_input_element() const final { return true; }
virtual bool is_html_progress_element() const final { return true; }
virtual JS::ThrowCompletionOr<void> initialize(JS::Realm&) override;