You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: when parse_* is false, add RAW nodes to AST (#155)
- src/parse.ts: Selector fallback now creates a RAW node when
parse_selectors_enabled is false, instead of always using SELECTOR_LIST
- src/parse-declaration.ts: Added RAW import and an else branch that
creates a
RAW node as a child of DECLARATION when value_parser is null
(parse_values:
false)
- src/css-node.ts: Updated the value getter to only return first_child
when
it's a VALUE node (not RAW), keeping declaration.value returning the raw
text
string when parse_values: false
- src/parse-options.test.ts: Updated 9 test assertions — has_children:
false →
true for parse_values:false cases, SELECTOR_LIST → RAW for
parse_selectors:false cases, plus added first_child?.type === RAW
assertion
- src/walk.test.ts: Updated 19 expected type arrays — SELECTOR_LIST →
RAW for
all parse_selectors: false cases, and added RAW after DECLARATION for
all
parse_values: false cases
some extras
- expose `ATTR_FLAG_NAMES` and `ATTR_OPERATOR_NAMES` publicly
0 commit comments