MRchildNEO / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

onsvgload may not fire if script comes after svg object #543

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. See attached test case. 
2. Load onsvgload.html on firefox
3. Click on works and fails and hit reload a few times.

The dialog comes up on the "works" example.The dialog does NOT come up on the 
"fails" example.

Note that the root cause is that the failes page has an object with a script 
after it and that object is firing its onload event before DOMContentLoaded 
event is fired. SVG Web adds the load listener in DOMContentLoaded and never 
gets the load event from the svg object and so it never considers the document 
ready and never fires SVGLoad.

If the svg image is really large, the load event may fire after 
DOMContentLoaded and then everything works.

Original issue reported on code.google.com by grick23@gmail.com on 21 Aug 2010 at 1:27

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by grick23@gmail.com on 21 Aug 2010 at 1:29

Attachments:

GoogleCodeExporter commented 8 years ago
This is a tough timing issue. Does this fail in SVG Web for both native and 
flash renderers?

Original comment by bradneub...@gmail.com on 27 Aug 2010 at 1:11

GoogleCodeExporter commented 8 years ago
I have this exact same issue. Is someone working on this?

Original comment by robin%st...@gtempaccount.com on 16 May 2011 at 3:17