From c7a9b85cbb73ba6f23282b0b15ffe0178931a161 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Wed, 30 Nov 2022 17:11:33 +0100 Subject: [PATCH] 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. --- HTMLparser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/HTMLparser.c b/HTMLparser.c index d9e6c087..2ab99de1 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -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" },