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

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 UTC