Author: Mason Wright
Email: [email protected]
Date: Sun, 29 Jun 2025 13:33:00 -0600
tests/html_parser.cc
Reworked parseSelectorParts and tests
Commits
Diff "; - - std::stringstream ss(html); - std::unique_ptr document = parseStream(ss); - - BENCHMARK("Textarea with script tag inside") { - return parseStream(ss); - }; - - // Ensure the only child of root is html - Node* current = document->children[0].get(); - - checkNode(current, "textarea", 1, "", {}, {{}}); - - current = current->children[0].get(); - checkNode(current, "text", 0, "", {}, {{"innerText",""}}); - } -} -
"; std::stringstream ss(html); std::unique_ptr document = parseStream(ss); BENCHMARK("Textarea with script tag inside") { return parseStream(ss); }; // Ensure the only child of root is html Node* current = document->children[0].get(); checkNode(current, "textarea", 1, "", {}, {{}}); current = current->children[0].get(); checkNode(current, "text", 0, "", {}, {{"innerText",""}}); } }