about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-11 19:42:04 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-11 19:42:49 +0200
commit8c3202f9ab838628e5360b6e118150bdc397bf23 (patch)
treef28d47ee0332f27eca0fcb180285491c01ba07cb
parent37546bb85efc292703289313c6c87798cd4ab20c (diff)
downloadchawan-8c3202f9ab838628e5360b6e118150bdc397bf23.tar.gz
dom: fix missing attribute reflection for <button>
-rw-r--r--src/html/dom.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 5bab4e9c..aef709e9 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -2901,6 +2901,7 @@ proc reflectAttrs(element: Element, name: CAtom, value: string) =
     option.reflect_bool satSelected, selected
   of TAG_BUTTON:
     let button = HTMLButtonElement(element)
+    button.reflect_str satValue, value
     button.reflect_str satType, ctype, (func(s: string): ButtonType =
       case s.toLowerAscii()
       of "submit": return BUTTON_SUBMIT