From 7c5d2e7557064ab86b9ef525cc7b9499c135e53f Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 27 Jul 2023 22:36:12 +0200 Subject: htmlparser: replace stray insert call --- src/html/htmlparser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html/htmlparser.nim') 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] -- cgit 1.4.1-2-gfad0