about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-25 23:15:49 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-25 23:16:39 +0100
commitd54e0258fd794ad54b42acc51ec65d9c7297d908 (patch)
tree028ec9ce0dc9ba77d23bea2e3f86e4aabb527b4b /src/html
parent7ab7f28fdefe503fdde53ba9e253e308cb06b44f (diff)
downloadchawan-d54e0258fd794ad54b42acc51ec65d9c7297d908.tar.gz
Fix some table layout issues
Diffstat (limited to 'src/html')
-rw-r--r--src/html/htmlparser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim
index f28cd300..123d8ac7 100644
--- a/src/html/htmlparser.nim
+++ b/src/html/htmlparser.nim
@@ -1576,7 +1576,7 @@ proc processInHTMLContent(parser: var HTML5Parser, token: Token, insertionMode =
   of IN_CAPTION:
     match token:
       "</caption>" => (block:
-        if parser.openElements.hasElementInTableScope(TAG_CAPTION):
+        if not parser.openElements.hasElementInTableScope(TAG_CAPTION):
           parse_error
         else:
           parser.generateImpliedEndTags()