diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-27 22:36:12 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-27 22:36:12 +0200 |
commit | 7c5d2e7557064ab86b9ef525cc7b9499c135e53f (patch) | |
tree | cf629c30e54ba4a3709a9f17456f0d5c82dd1553 /src | |
parent | 5c8f0e77182373dfa9d3821c3083715f743abc5b (diff) | |
download | chawan-7c5d2e7557064ab86b9ef525cc7b9499c135e53f.tar.gz |
htmlparser: replace stray insert call
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 a12ee282..05e830fb 100644 --- a/src/html/htmlparser.nim +++ b/src/html/htmlparser.nim @@ -1106,7 +1106,7 @@ proc adoptionAgencyAlgorithm[Handle](parser: var HTML5Parser[Handle], parser.append(node, lastNode) lastNode = node let location = parser.appropriatePlaceForInsert(commonAncestor) - location.inside.insert(lastNode, location.before) + parser.insertBefore(location.inside, lastNode, location.before) let token = parser.activeFormatting[formattingIndex][1] let element = parser.createElement(token, Namespace.HTML, furthestBlock) var tomove: seq[Handle] |