diff --git a/src/css/Selector.ts b/src/css/Selector.ts index 87a5ee17c0..56e45ffd1f 100644 --- a/src/css/Selector.ts +++ b/src/css/Selector.ts @@ -246,7 +246,7 @@ function attributeMatches(node: Node, name: string, expectedValue: string, opera if (value.type === 'Text') return pattern.test(value.data); const possibleValues = new Set(); - gatherPossibleValues(value.expression, possibleValues); + gatherPossibleValues(value.node, possibleValues); if (possibleValues.has(UNKNOWN)) return true; for (const x of Array.from(possibleValues)) { // TypeScript for-of is slightly unlike JS