about summary refs log tree commit diff stats
path: root/src/server
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-08 21:42:10 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-08 21:42:10 +0100
commita37af56817baa9c6fa1d0ecb6c1800222cf086bb (patch)
tree5a251fca0bf6cdb3e1a60ed0249c0eb32caee774 /src/server
parent0100e14b48e9e33b32c7035f07776af05541d2de (diff)
downloadchawan-a37af56817baa9c6fa1d0ecb6c1800222cf086bb.tar.gz
buffer: use `of' instead of tagType
Diffstat (limited to 'src/server')
-rw-r--r--src/server/buffer.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index 211bb024..cbefc5a2 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -339,7 +339,7 @@ proc getClickHover(styledNode: StyledNode): string =
       return HTMLAnchorElement(clickable).href
     of TAG_INPUT:
       #TODO this is inefficient and also quite stupid
-      if clickable.tagType in FormAssociatedElements:
+      if clickable of FormAssociatedElement:
         let fae = FormAssociatedElement(clickable)
         if fae.canSubmitOnClick():
           let req = fae.form.submitForm(fae)