mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-09-30 08:44:13 +00:00
Make html parser use case insensitive unordered_map for attributes
This commit is contained in:
@@ -78,7 +78,8 @@ struct HtmlNode : public std::enable_shared_from_this<HtmlNode> {
|
||||
auto node = std::make_shared<HtmlNode>();
|
||||
node->isText = false;
|
||||
node->text_or_tag = std::string{name};
|
||||
node->attributes.insert(node->attributes.end(), attrBegin, attrEnd);
|
||||
for (auto it = attrBegin; it != attrEnd; ++it)
|
||||
node->attributes[it->first] = it->second;
|
||||
node->children.insert(node->children.end(), nodesBegin, nodesEnd);
|
||||
return node;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user