Make html parser use case insensitive unordered_map for attributes

This commit is contained in:
2026-09-25 16:17:11 -05:00
parent 95442f8acc
commit 15f08f474f
6 changed files with 37 additions and 21 deletions
+4 -5
View File
@@ -360,16 +360,15 @@ struct HtmlParser {
if (v.type ==
HtmlLexTokenType::STRING) {
Read();
newNode->attributes.emplace_back(
k.text,
newNode->attributes[k.text] =
Http::HttpUtils::HtmlDecode(
v.text));
v.text);
continue;
}
}
}
newNode->attributes.emplace_back(k.text,
std::nullopt);
newNode->attributes[k.text] = std::nullopt;
continue;
}