From ea2bb52962d958f2c9d374867452e95217ccaa76 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 25 Jul 2024 22:35:24 +0100 Subject: [PATCH] LibWeb: Make `DocumentType::node_name()` return `DocumentType::name()` This aligns our implementation with the specification. --- Userland/Libraries/LibWeb/DOM/DocumentType.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/DocumentType.h b/Userland/Libraries/LibWeb/DOM/DocumentType.h index 26bd59a51da..4e8801570dc 100644 --- a/Userland/Libraries/LibWeb/DOM/DocumentType.h +++ b/Userland/Libraries/LibWeb/DOM/DocumentType.h @@ -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; }