about summary refs log tree commit diff stats
path: root/src/html/htmlparser.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/htmlparser.nim')
-rw-r--r--src/html/htmlparser.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html/htmlparser.nim b/src/html/htmlparser.nim
index c3df8e3d..9f9d4b85 100644
--- a/src/html/htmlparser.nim
+++ b/src/html/htmlparser.nim
@@ -60,6 +60,8 @@ type
     AFTER_BODY, IN_FRAMESET, AFTER_FRAMESET, AFTER_AFTER_BODY,
     AFTER_AFTER_FRAMESET
 
+jsDestructor(DOMParser)
+
 proc resetInsertionMode(parser: var HTML5Parser) =
   template switch_insertion_mode_and_return(mode: InsertionMode) =
     parser.insertionMode = mode