From 311c2afad616c64844f7ced542da3ef849aa7857 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 23 Jan 2025 19:00:51 +0100 Subject: dom: fix img tag insertion steps TAG_IMAGE does not really exist; it's auto-converted to TAG_IMG by the parser. --- 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 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) -- cgit