"load" event never fires for SVG element
borango opened this issue · comments
I have a test SVG diagram with 4 event handlers (click
, mouseenter
, load
and DOMContentLoaded
), all attached in the same way.
Events for click
and mouseenter
are fired and presented successfully in the status
cell.
However, I never see a trace of a load
event.
Since the handlers are attached to a SVGSVGElement
, I expect it to fire the load-related events also.
Please see the reproducer:
https://observablehq.com/@bogo/load-event-never-fires
I see the same behaviour when I export this notebook's code and run it locally, which eliminates the iframe and sandbox.
Expected behavior
I expect to read the load text in the status cell just after this notebook has fully loaded and the diagram is visible (DOMContentLoaded would be just as nice).
Desktop (please complete the following information):
- OS: Ubuntu 20 LTS
- Browsers: latest Firefox + Chrome browsers from repo