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:
parent
1be55fe793
commit
fe81c65660
1 changed files with 4 additions and 0 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue