about summary refs log tree commit diff stats
path: root/src/html/chadombuilder.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/chadombuilder.nim')
-rw-r--r--src/html/chadombuilder.nim19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/html/chadombuilder.nim b/src/html/chadombuilder.nim
index 3c5b2c12..708b127c 100644
--- a/src/html/chadombuilder.nim
+++ b/src/html/chadombuilder.nim
@@ -1,19 +1,19 @@
 import std/deques
 import std/options
+import std/tables
 
+import chagashi/charset
+import chame/htmlparser
+import chame/tags
 import html/catom
 import html/dom
 import html/enums
-import js/jserror
-import js/fromjs
-import js/javascript
+import monoucha/fromjs
+import monoucha/javascript
+import monoucha/jserror
+import types/opt
 import types/url
 
-import chagashi/charset
-
-import chame/htmlparser
-import chame/tags
-
 export htmlparser.ParseResult
 
 # DOMBuilder implementation for Chawan.
@@ -260,6 +260,9 @@ proc parseHTMLFragment*(element: Element; s: string): seq[Node] =
   builder.finish()
   return root.childList
 
+# Forward declaration hack
+domParseHTMLFragment = parseHTMLFragment
+
 proc newHTML5ParserWrapper*(window: Window; url: URL; factory: CAtomFactory;
     confidence: CharsetConfidence; charset: Charset): HTML5ParserWrapper =
   let opts = HTML5ParserOpts[Node, CAtom](scripting: window.settings.scripting)