diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-20 21:12:44 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-20 21:12:44 +0100 |
commit | e80ff4e35559d71ea1090f70fe88f19d07507370 (patch) | |
tree | b5ef6884e038d634f84433eb6c022816fd03e50e | |
parent | 5769f121a55fa492b3aac82fde2a2e9dd55d61b1 (diff) | |
download | chawan-e80ff4e35559d71ea1090f70fe88f19d07507370.tar.gz |
htmlparser: fix bug in reconstructActiveFormatting
this needs isNone, not isSome
-rw-r--r-- | chame/htmlparser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chame/htmlparser.nim b/chame/htmlparser.nim index 347fd542..5651b4d3 100644 --- a/chame/htmlparser.nim +++ b/chame/htmlparser.nim @@ -940,7 +940,7 @@ proc reconstructActiveFormatting[Handle](parser: var HTML5Parser[Handle]) = state = CREATE continue dec i - if entry.isSome or parser.openElements.find(entry.get) != -1: + if entry.isSome and parser.openElements.find(entry.get) != -1: continue state = ADVANCE of ADVANCE: |