diff options
Diffstat (limited to 'src/html/dom.nim')
-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: |