LibXML: Read code points when parsing names

This commit is contained in:
Gingeh 2024-11-06 18:40:14 +11:00 committed by Ali Mohammad Pur
commit 453e034801
Notes: github-actions[bot] 2024-11-06 09:09:03 +00:00
2 changed files with 26 additions and 6 deletions

View file

@ -41,3 +41,9 @@ TEST_CASE(predefined_character_reference)
auto const& content = node.children[0]->content.get<XML::Node::Text>();
EXPECT_EQ(content.builder.string_view(), "Well hello &, <, >, ', and \"!");
}
TEST_CASE(unicode_name)
{
XML::Parser parser("<div 中文=\"\"></div>"sv);
TRY_OR_FAIL(parser.parse());
}