diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-08 21:42:10 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-08 21:42:10 +0100 |
commit | a37af56817baa9c6fa1d0ecb6c1800222cf086bb (patch) | |
tree | 5a251fca0bf6cdb3e1a60ed0249c0eb32caee774 /src | |
parent | 0100e14b48e9e33b32c7035f07776af05541d2de (diff) | |
download | chawan-a37af56817baa9c6fa1d0ecb6c1800222cf086bb.tar.gz |
buffer: use `of' instead of tagType
Diffstat (limited to 'src')
-rw-r--r-- | src/server/buffer.nim | 2 |
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) |