diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-18 20:46:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-18 20:46:30 +0100 |
commit | bfaf210d87e90016f8f2521657bd04686170aa43 (patch) | |
tree | e9711cb2f72174058d88ce2d52a76239e3c54c62 /src/css | |
parent | 1fbe17eeddefb87bf8e819be7792ae7a6482d8f8 (diff) | |
download | chawan-bfaf210d87e90016f8f2521657bd04686170aa43.tar.gz |
Add JS support to documents
Diffstat (limited to 'src/css')
-rw-r--r-- | src/css/match.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/match.nim b/src/css/match.nim index 7d502df1..cc10c6b9 100644 --- a/src/css/match.nim +++ b/src/css/match.nim @@ -11,7 +11,7 @@ import html/tags func attrSelectorMatches(elem: Element, sel: Selector): bool = case sel.rel - of ' ': return sel.attr in elem.attributes + of ' ': return elem.attrb(sel.attr) of '=': return elem.attr(sel.attr) == sel.value of '~': return sel.value in elem.attr(sel.attr).split(Whitespace) of '|': |