srctree

Robin Linden parent e021c959 e03a79f3
html2/test: Fix DOCTYPE name being required

null is a perfectly fine DOCTYPE name.

inlinesplit
html2/html5lib_test.cpp added: 2, removed: 2, total 0
@@ -65,7 +65,7 @@ std::vector<html2::Token> to_html2_tokens(simdjson::ondemand::array tokens) {
auto it = token.begin().value();
auto kind = (*it).get_string().value();
if (kind == "DOCTYPE") {
auto name = std::string{(*++it).value().get_string().value()};
auto name = kGetOptionalStr((*++it).value());
auto public_id = kGetOptionalStr((*++it).value());
auto system_id = kGetOptionalStr((*++it).value());
// The json has "correctness" instead of "force quirks", so we negate it.