diff options
Diffstat (limited to 'src/html')
-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] |