1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-11 21:41:53 +03:00

html: Improve parsing of nested lists

Allow ul/ol as immediate children of ul/ol. This is more in line with
the HTML5 spec.

Fixes #447.
This commit is contained in:
Nick Wellnhofer
2022-11-30 17:11:33 +01:00
parent ccb6d54409
commit c7a9b85cbb

View File

@ -1222,7 +1222,6 @@ static const htmlStartCloseEntry htmlStartClose[] = {
{ "menu", "form" },
{ "menu", "ul" },
{ "ol", "form" },
{ "ol", "ul" },
{ "option", "optgroup" },
{ "option", "option" },
{ "p", "address" },
@ -1306,7 +1305,6 @@ static const htmlStartCloseEntry htmlStartClose[] = {
{ "ul", "address" },
{ "ul", "form" },
{ "ul", "menu" },
{ "ul", "ol" },
{ "ul", "pre" },
{ "xmp", "dd" },
{ "xmp", "dl" },