Re: [1.2T-LC] Clarification for removal of script element (ISSUE-2098)

Hi Julien,

The SVG Working Group discussed the question you raised. Please see the comments 
below.

Julien Reichel wrote:
> Hi,
> 
>  
> 
> Basic question about script:
> 
> Can a script element remove itself from the XML tree ? If yes what is 
> the impact on the execution of the script
> 
>  
> 
> Example:
> 
> <script xml:id='test'>
> 
> var scr = document.getElementById("test");
> 
> scr.parentNode.removeChild(scr);
> 
> // more script
> 
> ...
> 
> </script>
> 
> Does this throw an exception ?
> 
> Does the "more script" get executed or not ?
> 

In summary no. The Working Group decided to add wording to the scripting chapter 
[1] of the specification to clarify this. The new wording is the second 
paragraph after the script element processing steps. This change will appear in 
the next publication of the specification

Please let us know at your earliest convenience if the change and response is 
satisfactory.

Kind Regards,

Anthony Grasso.


[1] http://dev.w3.org/SVG/profiles/1.2T/master/script.html#ScriptElement

Received on Friday, 17 October 2008 11:42:37 UTC