Skip to content

Commit

Permalink
LibWeb: Make DocumentType::node_name() return DocumentType::name()
Browse files Browse the repository at this point in the history
This aligns our implementation with the specification.
  • Loading branch information
tcl3 committed Jul 25, 2024
1 parent d49ae5a commit 1fcb3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/DOM/DocumentType.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class DocumentType final

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; }
Expand Down

0 comments on commit 1fcb3db

Please sign in to comment.