[SVGMobile12] Question on details of when <script> elements execute

Dear SVG Working Group,

In section 15.2 [1] there is the following text:

   Any scripting logic associated with a given script element is
   executed at most once. Script execution happens just after the
   load event occurs for the given script element. Removing,
   inserting or altering script elements after script execution has
   taken place has no effect.

This leaves the following questions open, I believe:

1)  If a script element is modified before script execution has
     taken place (eg the xlink:href value is changed while the
     script the original xlink:href value pointed to is loading),
     what happens?  Similar for other DOM mutations to the <script>
     node.
2)  Do scripts created via createElementNS() ever execute?  If so,
     when?  Note that it's not clear to me whether the load event
     fires on nodes created via DOM methods.
3)  Do scripts that are clones (via cloneNode()) of other scripts
     execute?  If so, when?  Does it matter whether the script that
     was cloned had already executed at the time of cloning?

-Boris

[1] http://www.w3.org/TR/2005/WD-SVGMobile12-20051207/script.html#ScriptElement

Received on Saturday, 28 January 2006 06:00:51 UTC