diff options
author | bptato <nincsnevem662@gmail.com> | 2023-01-05 04:21:44 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-01-05 04:21:44 +0100 |
commit | a16e3575c858822b2b7b09a746a84dcf282ef259 (patch) | |
tree | 4acb479485d18187b0b71a526420b4144637b8d4 /src/html | |
parent | f43b306fae89a6fde2aef9bcde2511dafd8519c7 (diff) | |
download | chawan-a16e3575c858822b2b7b09a746a84dcf282ef259.tar.gz |
dom: fix object conversion bug in options
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/dom.nim | 2 |
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: |