aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/sheet.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-12-15 16:44:53 +0100
committerbptato <nincsnevem662@gmail.com>2024-12-15 16:44:53 +0100
commit8a586beaa26fa7ad4dbc4573e655927f8f32e158 (patch)
treecad39d5751c769bbdaf5b0bc5403322c63ebefc2 /src/css/sheet.nim
parent2dc6b651e60604e1fe139ede00ff9c172535a939 (diff)
downloadchawan-8a586beaa26fa7ad4dbc4573e655927f8f32e158.tar.gz
dom, css: fix case-insensitive class/id/attr matching
Uses an additional lower-case map for O(1) case-insensitive comparisons.
Diffstat (limited to 'src/css/sheet.nim')
-rw-r--r--src/css/sheet.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/sheet.nim b/src/css/sheet.nim
index 248033af..0793e903 100644
--- a/src/css/sheet.nim
+++ b/src/css/sheet.nim
@@ -35,7 +35,7 @@ type
generalList*: seq[CSSRuleDef]
importList*: seq[URL]
len: int
- factory: CAtomFactory
+ factory*: CAtomFactory
type SelectorHashes = object
tag: CAtom