From a16e3575c858822b2b7b09a746a84dcf282ef259 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 5 Jan 2023 04:21:44 +0100 Subject: dom: fix object conversion bug in options --- src/html/dom.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html') 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: -- cgit 1.4.1-2-gfad0 4058add3c2002b90f171a1ace40bf21118103e'>this commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/html/084console.mu.html
blob: 50f6392285a7af0071bd3cdfd27b5ed9aa236381 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167