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

[1.2T-LC] Clarification for removal of script element

From: Julien Reichel <Julien.Reichel@spinetix.com>
Date: Fri, 10 Oct 2008 09:58:35 +0200
Message-ID: <364D31930BDB974AB40E22C5C2E584ED1E6AFE@asterix.SPINETIX.local>
To: <www-svg@w3.org>
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 ?

 

Julien

 

-------------------------------------------------------------

Julien Reichel, PhD

Technology Architect, SpinetiX S.A.

Rue des Terreaux 17, CH-1003, Lausanne, Switzerland

 

Tel:     +41 (0) 021 341 15 50

Mail:   julien.reichel@spinetix.com <mailto:julien.reichel@spinetix.com>


Get Information : http://www.spinetix.com <http://www.spinetix.com/> 

-------------------------------------------------------------

 
Received on Friday, 10 October 2008 07:59:12 GMT

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