[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: more questions about onload
Hi all,
So we've agreed that we want the 'onload' event to be dispatched
every time 'src' changes. Ok.
Here's another question that has been bothering me lately... Assume
we have the following js code:
var metafile = document.getWebCGMMetafile();
metafile.src = 'myCGM.cgm';
metafile.addEventListener("onload", myLoadFunction);
metafile.src = 'myCGM2.cgm';
The current spec wording says that event listeners are added to the
WebCGMMetafile object, but 'src' is loading a new metafile;
shouldn't the event listener 'myLoadFunction' be discarded when
'src' is modified?
Do we want to have the event listeners attached to the user agent or
to the metafile? If it's to the user agent, then the
'addEventListener' spec description needs to change.
Thoughts?
--
Benoit mailto:benoit@itedo.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]