1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

html: Stop implying <p> start tags

Only <html>, <head> or <body> should be implied. Opening extra <p> tags
has always been a libxml2 quirk.
This commit is contained in:
Nick Wellnhofer
2025-02-13 18:20:46 +01:00
parent 71122421a1
commit 8cf6129bbd
8 changed files with 22 additions and 67 deletions

View File

@@ -474,7 +474,7 @@ testHtmlPushWithEncoding(void) {
err = 1;
}
node = xmlDocGetRootElement(doc)->children->children->children;
node = xmlDocGetRootElement(doc)->children->children;
if (!xmlStrEqual(node->content, BAD_CAST "-\xC3\xA4-")) {
fprintf(stderr, "testHtmlPushWithEncoding failed\n");
err = 1;