Browse Source

fixed: in HTMLParser::CheckClosingTags() don't return immediately if stack_len is equal to 2

htmlparserlistener
Tomasz Sowa 1 year ago
parent
commit
4902eb6037
  1. 2
      src/html/htmlparser.cpp

2
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;

Loading…
Cancel
Save