<p dir="auto">It seems that the <code class="notranslate">onLoad</code> attribute doesn't work on <code class="notranslate">&lt;svg&gt;</code> tags as it does on <code class="notranslate">&lt;img /&gt;</code> tags...</p>
<p dir="auto">Could you add support for <code class="notranslate">onLoad</code> on <code class="notranslate">&lt;svg /&gt;</code> ?</p>
<p dir="auto">SVG <code class="notranslate">&lt;image&gt;</code> is supposed as far as I know to support at least the same onload and onerror events <code class="notranslate">&lt;img&gt;</code> supports.</p>
<p dir="auto">From looking at React code the events are handled on specific elements in <code class="notranslate">ReactDOMComponents.js</code> in <code class="notranslate">trapBubbledEventsLocal, mountComponent, unmountComponent</code>.</p>
<p dir="auto">It would be easy to create a pull request to add 'image' to these cases, but it seems that there is a separation between js files that handle DOM and SVG in the codebase that this might collide with.</p>
<p dir="auto">Am I correct and there is more to it than just adding more cases? Or these functions are the right place to also handle SVG image?</p>