From 2e0108397fe279a2a1dcbbacfa1515d5db297dc2 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 24 Feb 2024 18:48:51 +0100 Subject: dom: check rel attribute for link tags before download --- src/html/dom.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/dom.nim b/src/html/dom.nim index 39a80681..17f11486 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2852,7 +2852,7 @@ proc reflectAttrs(element: Element, name: CAtom, value: string) = of TAG_LINK: let link = HTMLLinkElement(element) if link.isConnected and (name == atRel and value == "stylesheet" or - name == atHref): + name == atHref and link.attr(atRel) == "stylesheet"): link.fetchStarted = false let window = link.document.window if window != nil: -- cgit 1.4.1-2-gfad0