diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-27 18:31:17 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-27 18:31:17 +0200 |
commit | 050a18afb4009d973d3d3989ccae389d5473da25 (patch) | |
tree | 42b11afce3cbdd2a2584c5b8ea8b220ac9b7e8bc /src | |
parent | 7e95c6cd3de5408c6090cef346fbe32d429ead21 (diff) | |
download | chawan-050a18afb4009d973d3d3989ccae389d5473da25.tar.gz |
htmlparser: fix <th> not closing table cells
<th> should close table cells, but was missing from the table cell closing list for some reason.
Diffstat (limited to 'src')
-rw-r--r-- | src/html/htmlparser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim index 866c9249..a12ee282 100644 --- a/src/html/htmlparser.nim +++ b/src/html/htmlparser.nim @@ -2291,7 +2291,7 @@ proc processInHTMLContent[Handle](parser: var HTML5Parser[Handle], parser.insertionMode = IN_ROW ) ("<caption>", "<col>", "<colgroup>", "<tbody>", "<td>", "<tfoot>", - "<thead>", "<tr>") => (block: + "<th>", "<thead>", "<tr>") => (block: if not parser.hasElementInTableScope({TAG_TD, TAG_TH}): parse_error ELEMENT_NOT_IN_SCOPE else: |