Update src/compiler/compile/css/Selector.ts

Co-authored-by: Yuichiro Yamashita <xydybaseball@gmail.com>
pull/8122/head
Simon H 4 years ago committed by GitHub
parent 54949df40e
commit 2c2f545f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -350,7 +350,7 @@ function attribute_matches(node: CssNode, name: string, expected_value: string,
const attr = node.attributes.find((attr: CssNode) => attr.name === name);
if (!attr) return false;
if (attr.is_true) return operator === null;
if (expected_value === null) return true;
if (expected_value == null) return true;
if (attr.chunks.length === 1) {
const value = attr.chunks[0];

Loading…
Cancel
Save