From 4902eb60377b289172205bb2dc1aed928376639b Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 3 Oct 2021 13:22:49 +0200 Subject: [PATCH] fixed: in HTMLParser::CheckClosingTags() don't return immediately if stack_len is equal to 2 --- src/html/htmlparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/htmlparser.cpp b/src/html/htmlparser.cpp index e5d3b66..e35f181 100644 --- a/src/html/htmlparser.cpp +++ b/src/html/htmlparser.cpp @@ -1894,7 +1894,7 @@ void HTMLParser::CheckClosingTags() // on the stack we have only opening tags // but only the last tag is a closing tag - if( stack_len < 3 ) + if( stack_len == 1 ) { PopStack(); return;