diff --git a/src/dom/sgml/parser.c b/src/dom/sgml/parser.c index 594a927d..84bd1f7e 100644 --- a/src/dom/sgml/parser.c +++ b/src/dom/sgml/parser.c @@ -566,7 +566,7 @@ init_sgml_parser(enum sgml_parser_type type, enum sgml_document_type doctype, add_dom_stack_context(&parser->stack, parser, &sgml_parser_context_info); /* Don't keep the 'fake' text nodes that holds the parsing data. */ - init_dom_stack(&parser->parsing, 0); + init_dom_stack(&parser->parsing, DOM_STACK_FLAG_FREE_NODES); add_dom_stack_context(&parser->parsing, parser, &sgml_parsing_context_info); return parser;