fix(a11y): do not warn if href value is dynamic (#6110)

pull/6271/head
Térence Hollander 4 years ago committed by GitHub
parent 20cb78377d
commit 842b8412b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -96,7 +96,7 @@ export default class Attribute extends Node {
} }
get_static_value() { get_static_value() {
if (this.is_spread || this.dependencies.size > 0) return null; if (!this.is_static) return null;
return this.is_true return this.is_true
? true ? true

@ -1 +1,2 @@
<a href='/foo'></a> <a href='/foo'></a>
<a href="#{'foo'}">bar</a>

Loading…
Cancel
Save