diff --git a/src/compiler/compile/nodes/Attribute.ts b/src/compiler/compile/nodes/Attribute.ts index 47efc4b03661..ebed483288a6 100644 --- a/src/compiler/compile/nodes/Attribute.ts +++ b/src/compiler/compile/nodes/Attribute.ts @@ -96,7 +96,7 @@ export default class Attribute extends Node { } get_static_value() { - if (this.is_spread || this.dependencies.size > 0) return null; + if (!this.is_static) return null; return this.is_true ? true diff --git a/test/validator/samples/a11y-anchor-has-content/input.svelte b/test/validator/samples/a11y-anchor-has-content/input.svelte index ca81f90ae895..e246a1e59351 100644 --- a/test/validator/samples/a11y-anchor-has-content/input.svelte +++ b/test/validator/samples/a11y-anchor-has-content/input.svelte @@ -1 +1,2 @@ - \ No newline at end of file + +bar