mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
Test Doctype marked PUBLIC but with no ID is rejected
This commit is contained in:
parent
5bbc983e7d
commit
b78b96f6df
1 changed files with 9 additions and 0 deletions
|
@ -6706,6 +6706,14 @@ START_TEST(test_short_doctype)
|
|||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST(test_short_doctype_2)
|
||||
{
|
||||
const char *text = "<!DOCTYPE doc PUBLIC></doc>";
|
||||
expect_failure(text, XML_ERROR_SYNTAX,
|
||||
"DOCTYPE without Public ID not rejected");
|
||||
}
|
||||
END_TEST
|
||||
|
||||
/*
|
||||
* Namespaces tests.
|
||||
*/
|
||||
|
@ -12190,6 +12198,7 @@ make_suite(void)
|
|||
tcase_add_test(tc_basic, test_entity_public_utf16_be);
|
||||
tcase_add_test(tc_basic, test_entity_public_utf16_le);
|
||||
tcase_add_test(tc_basic, test_short_doctype);
|
||||
tcase_add_test(tc_basic, test_short_doctype_2);
|
||||
|
||||
suite_add_tcase(s, tc_namespace);
|
||||
tcase_add_checked_fixture(tc_namespace,
|
||||
|
|
Loading…
Add table
Reference in a new issue