about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-01-05 04:21:44 +0100
committerbptato <nincsnevem662@gmail.com>2023-01-05 04:21:44 +0100
commita16e3575c858822b2b7b09a746a84dcf282ef259 (patch)
tree4acb479485d18187b0b71a526420b4144637b8d4 /src/html
parentf43b306fae89a6fde2aef9bcde2511dafd8519c7 (diff)
downloadchawan-a16e3575c858822b2b7b09a746a84dcf282ef259.tar.gz
dom: fix object conversion bug in options
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index 228f48e1..37ba4323 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -509,7 +509,7 @@ iterator options*(select: HTMLSelectElement): HTMLOptionElement {.inline.} =
     elif child.tagType == TAG_OPTGROUP:
       for opt in child.elementList:
         if opt.tagType == TAG_OPTION:
-          yield HTMLOptionElement(child)
+          yield HTMLOptionElement(opt)
 
 proc populateCollection(collection: Collection) =
   if collection.childonly: