diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
index 0ff40c371c..42a1df321b 100644
--- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLTokenizer.cpp
@@ -844,7 +844,7 @@ _StartOfFunction:
{
ON('"')
{
- m_current_token.ensure_doctype_data().public_identifier = consume_current_builder();
+ m_current_token.ensure_doctype_data().system_identifier = consume_current_builder();
SWITCH_TO(AfterDOCTYPESystemIdentifier);
}
ON(0)
@@ -856,7 +856,7 @@ _StartOfFunction:
ON('>')
{
log_parse_error();
- m_current_token.ensure_doctype_data().public_identifier = consume_current_builder();
+ m_current_token.ensure_doctype_data().system_identifier = consume_current_builder();
m_current_token.ensure_doctype_data().force_quirks = true;
SWITCH_TO_AND_EMIT_CURRENT_TOKEN(Data);
}