fix css expression analysis

pull/7738/head
Rich Harris 8 years ago
parent e0161f1dfa
commit 4f7c67db13

@ -246,7 +246,7 @@ function attributeMatches(node: Node, name: string, expectedValue: string, opera
if (value.type === 'Text') return pattern.test(value.data); if (value.type === 'Text') return pattern.test(value.data);
const possibleValues = new Set(); const possibleValues = new Set();
gatherPossibleValues(value.expression, possibleValues); gatherPossibleValues(value.node, possibleValues);
if (possibleValues.has(UNKNOWN)) return true; if (possibleValues.has(UNKNOWN)) return true;
for (const x of Array.from(possibleValues)) { // TypeScript for-of is slightly unlike JS for (const x of Array.from(possibleValues)) { // TypeScript for-of is slightly unlike JS

Loading…
Cancel
Save