mirror of https://github.com/sveltejs/svelte
parent
fe4637305b
commit
4a67542bec
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "invalid-binding",
|
||||
"message": "'offsetWidth' is not a valid binding on void elements like <img>. Use a wrapper element instead",
|
||||
"pos": 22,
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 22,
|
||||
"character": 22
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 38,
|
||||
"character": 38
|
||||
}
|
||||
}]
|
@ -0,0 +1 @@
|
||||
<img src='potato.jpg' bind:offsetWidth>
|
Loading…
Reference in new issue