diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-23 19:00:51 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-23 19:48:17 +0100 |
| commit | 311c2afad616c64844f7ced542da3ef849aa7857 (patch) | |
| tree | c245257442ee61e896ad26af8c749cfcc66d33e2 /src/html | |
| parent | 5af15855cc07e99728181f371d1d7eb9a295d277 (diff) | |
| download | chawan-311c2afad616c64844f7ced542da3ef849aa7857.tar.gz | |
dom: fix img tag insertion steps
TAG_IMAGE does not really exist; it's auto-converted to TAG_IMG by the
parser.
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 8bad0c88..afaa33dc 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -4727,7 +4727,7 @@ proc elementInsertionSteps(element: Element) = if window != nil: let link = HTMLLinkElement(element) window.loadResource(link) - of TAG_IMAGE: + of TAG_IMG: let window = element.document.window if window != nil: let image = HTMLImageElement(element) |