mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
LibXML: Read code points when parsing names
This commit is contained in:
parent
42b31820a6
commit
453e034801
Notes:
github-actions[bot]
2024-11-06 09:09:03 +00:00
Author: https://github.com/Gingeh
Commit: 453e034801
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2192
Reviewed-by: https://github.com/alimpfard
2 changed files with 26 additions and 6 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue