From 168bd542d989c76ce3ff09a29b8d77af448c3c12 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 15 Jan 2024 20:48:29 +0100 Subject: Update chame * Update chame to the latest version * Get rid of nodeType usage * Add atoms * Re-implement DOM attributes * document.write --- src/xhr/formdata.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xhr') diff --git a/src/xhr/formdata.nim b/src/xhr/formdata.nim index e5cc5aa0..7d83d5b2 100644 --- a/src/xhr/formdata.nim +++ b/src/xhr/formdata.nim @@ -137,7 +137,7 @@ proc constructEntryList*(form: HTMLFormElement, submitter: Element = nil, if field.tagType == TAG_SELECT: let field = HTMLSelectElement(field) for option in field.options: - if option.selected or option.disabled: + if option.selected or option.isDisabled: entrylist.add((name, option.value)) elif field.tagType == TAG_INPUT and HTMLInputElement(field).inputType in {INPUT_CHECKBOX, INPUT_RADIO}: let value = if field.attr("value") != "": -- cgit 1.4.1-2-gfad0