LibXml: Notify listener as soon as doctype is parsed

Fixes Wtp Test dom/nodes/DocumentType-literal-xhtml.xhtml avoid regression on parsing-xhtml-documents
This commit is contained in:
mikiubo 2025-01-02 00:42:49 +01:00
parent 1be55fe793
commit fe81c65660

View file

@ -622,6 +622,10 @@ ErrorOr<void, ParseError> Parser::parse_doctype_decl()
rollback.disarm();
m_doctype = move(doctype);
if (m_doctype.has_value()) {
m_listener->set_doctype(m_doctype.value());
}
return {};
}