about summary refs log tree commit diff stats
path: root/src/server/buffer.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-02 01:25:42 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-02 01:33:49 +0100
commitd206c2e55515924e1f6a68fdbd70ff21779cdf73 (patch)
tree5f8c41865973302d6f06f79f5f777a17f91d036c /src/server/buffer.nim
parent2e37c2cee2a36265523962af4f8ff1402dc44d0b (diff)
downloadchawan-d206c2e55515924e1f6a68fdbd70ff21779cdf73.tar.gz
dom: fix relList setter regression, remove rel()
Diffstat (limited to 'src/server/buffer.nim')
-rw-r--r--src/server/buffer.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index dec9769f..ce99a691 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -722,7 +722,7 @@ proc loadResources(buffer: Buffer): EmptyPromise =
       case elem.tagType
       of TAG_LINK:
         let elem = HTMLLinkElement(elem)
-        if elem.rel == "stylesheet":
+        if elem.attr("rel") == "stylesheet":
           p = buffer.loadResource(elem)
       of TAG_IMG:
         let elem = HTMLImageElement(elem)