diff options
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/dom.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 0f9cb3ef..1237d701 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2137,6 +2137,8 @@ proc reflectAttrs(element: Element, name, value: string) = let input = HTMLInputElement(element) input.reflect_str "value", value input.reflect_str "type", inputType, inputType + if input.inputType == INPUT_UNKNOWN: + input.inputType = INPUT_TEXT input.reflect_bool "checked", checked of TAG_OPTION: let option = HTMLOptionElement(element) |