W3C home > Mailing lists > Public > www-svg@w3.org > October 2008

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

From: Anthony Grasso <anthony.grasso@cisra.canon.com.au>
Date: Fri, 17 Oct 2008 22:41:53 +1100
Message-ID: <48F87A01.5050006@cisra.canon.com.au>
To: Julien Reichel <Julien.Reichel@spinetix.com>
CC: www-svg@w3.org

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:40 GMT