title: Is Vue's @error on img tag listening for the onerror event?
body: <p>I've run into an issue where I need to use a fallback image in the event that an image's <code>src</code> attribute can't be found. Most of the advice I've seen on this regarding Vue is to use <code>@error</code>:</p>
  <pre><code>&lt;img src=&quot;badsrc.jpg&quot; @error=&quot;handleError&quot; /&gt;
  </code></pre>
  <p>This works great. My <code>handleError</code> logic runs when the image 404's and I'm able to set a data prop on the component that a computed property then uses to detect that the image source needs to use a fallback image. But I've noticed that according to MDN (Mozilla Developer Network), the <code>onerror</code> attribute on an <code>img</code> tag is deprecated and shouldn't be used. Additionally, IE11 support for <code>onerror</code> is unknown (luckily that browser should be officially retired this November).</p>
  <p>Does that mean I shouldn't be using <code>@error</code> on an <code>img</code> in Vue, or is <code>@error</code> really doing something else behind the scenes? I noticed that my compiled HTML doesn't have an <code>onerror</code> attribute for the image.</p>