mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-09-30 16:54:14 +00:00
Make html parser use case insensitive unordered_map for attributes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user