Catch binding to native image properties natively which doesn't work
Opened this issue · 2 comments
MichaelRFairhurst commented
Very easy to accidentally write
<image src="image.src" />
but that won't work, should be (I think...)
<image [src]="image.src" />
Note that this can be valid. So it should be a lint error, which we will try to keep separate.
Worth brainstorming where else these problems come up
zoechi commented
It might be worth checking
- if
image
exists on the component. - type of
src
is notString
(or not compatible withString
)
IMHO these strongly indicate a binding was meant instead of a plain HTML attribute.
zoechi commented
Is there a way to suppress lints in HTML? (like the // ignore: xxx
comments in Dart code)