aboutsummaryrefslogtreecommitdiffstats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-12-17 18:38:32 +0100
committerbptato <nincsnevem662@gmail.com>2021-12-17 18:44:44 +0100
commitef4604ba8f494a2997a744a0b04732dc686c46ea (patch)
tree77a67abb1bc31a5ad86966729ba56bb307083827 /src/html
parentd430a83ab3e971b816581839fbdf860a293242e8 (diff)
downloadchawan-ef4604ba8f494a2997a744a0b04732dc686c46ea.tar.gz
More code formatting consistency
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim2
-rw-r--r--src/html/parser.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 7cb49f0e..3de1847c 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -290,7 +290,7 @@ func newDocument*(): Document =
result.body = newHtmlElement(TAG_BODY)
result.nodeType = DOCUMENT_NODE
-func newAttr*(parent: Element, key: string, value: string): Attr =
+func newAttr*(parent: Element, key, value: string): Attr =
new(result)
result.nodeType = ATTRIBUTE_NODE
result.ownerElement = parent
diff --git a/src/html/parser.nim b/src/html/parser.nim
index 74ec68b7..153df1c5 100644
--- a/src/html/parser.nim
+++ b/src/html/parser.nim
@@ -165,7 +165,7 @@ proc parse_tag(buf: string, at: var int): DOMParsedTag =
inc at
return tag
-proc insertNode(parent: Node, node: Node) =
+proc insertNode(parent, node: Node) =
parent.childNodes.add(node)
if parent.childNodes.len > 1: