LibWeb: Make DocumentType::node_name() return DocumentType::name()

This aligns our implementation with the specification.
This commit is contained in:
Tim Ledbetter 2024-07-25 22:35:24 +01:00 committed by Andreas Kling
parent cdb9081a86
commit ea2bb52962
Notes: github-actions[bot] 2024-07-26 05:20:18 +00:00

View file

@ -23,7 +23,7 @@ public:
virtual ~DocumentType() override = default;
virtual FlyString node_name() const override { return "#doctype"_fly_string; }
virtual FlyString node_name() const override { return name(); }
String const& name() const { return m_name; }
void set_name(String const& name) { m_name = name; }