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

Dear Anthony,

The response is satisfactory

Julien

-----Original Message-----
From: www-svg-request@w3.org [mailto:www-svg-request@w3.org] On Behalf
Of Anthony Grasso
Sent: vendredi 17 octobre 2008 13:42
To: Julien Reichel
Cc: www-svg@w3.org
Subject: 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 Monday, 20 October 2008 07:54:32 UTC