Skip to content

Commit 842b841

Browse files
authored
fix(a11y): do not warn if href value is dynamic (#6110)
1 parent 20cb783 commit 842b841

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/compiler/compile/nodes/Attribute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default class Attribute extends Node {
9696
}
9797

9898
get_static_value() {
99-
if (this.is_spread || this.dependencies.size > 0) return null;
99+
if (!this.is_static) return null;
100100

101101
return this.is_true
102102
? true
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
<a href='/foo'></a>
1+
<a href='/foo'></a>
2+
<a href="#{'foo'}">bar</a>

0 commit comments

Comments
 (0)