about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-07-18 17:58:38 +0200
committerbptato <nincsnevem662@gmail.com>2022-07-18 17:58:38 +0200
commitd6000870dbf2f110c3903e03833151cce1d9759a (patch)
tree0a1ab21793d9413c764d594a36396234be1ddbc0 /src/html
parent918964940ddbbef317168392bc5f5e193a7a96cd (diff)
downloadchawan-d6000870dbf2f110c3903e03833151cce1d9759a.tar.gz
Enable remote stylesheets; fix inline block values
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 6788bd35..d5ee1015 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -163,6 +163,7 @@ type
 
 # For debugging
 func `$`*(node: Node): string =
+  if node == nil: return "nil"
   case node.nodeType
   of ELEMENT_NODE:
     let element = Element(node)
@@ -535,7 +536,7 @@ func newComment*(document: Document, data: string = ""): Comment =
   result.document = document
   result.data = data
 
-# note: we do not implement custom elements
+#TODO custom elements
 func newHTMLElement*(document: Document, tagType: TagType, namespace = Namespace.HTML, prefix = none[string]()): HTMLElement =
   case tagType
   of TAG_INPUT: