From 8e1ccfe2f2809b5bbae2d311e1b30f9ffe1833f6 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 23 Jan 2022 01:11:42 +0100 Subject: Fix * selector --- src/css/selparser.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/css/selparser.nim b/src/css/selparser.nim index 67f53b42..9a953c54 100644 --- a/src/css/selparser.nim +++ b/src/css/selparser.nim @@ -203,6 +203,8 @@ proc parseSelectorToken(state: var SelectorParser, csstoken: CSSToken) = of Rune('~'): if state.selectors[^1].len > 0 or state.combinator != nil: state.query = QUERY_SUBSEQ_SIBLING_COMBINATOR + of Rune('*'): + state.addSelector(Selector(t: UNIVERSAL_SELECTOR)) else: discard of CSS_HASH_TOKEN: state.addSelector(Selector(t: ID_SELECTOR, id: $csstoken.value)) -- cgit 1.4.1-2-gfad0