W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

ISSUE-2098 (script removal): Clarification for removal of script element [Last Call: SVG 1.2 Tiny ]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Fri, 10 Oct 2008 07:25:25 -0400 (EDT)
To: public-svg-wg@w3.org
Message-Id: <20081010112525.C7FC24DD62@crusher.w3.org>


ISSUE-2098 (script removal): Clarification for removal of script element [Last Call: SVG 1.2 Tiny ]

http://www.w3.org/Graphics/SVG/WG/track/issues/2098

Raised by: Doug Schepers
On product: Last Call: SVG 1.2 Tiny 

Julien Reichel
<http://lists.w3.org/Archives/Public/www-svg/2008Oct/0056.html>:
[[
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 ?
]]
Received on Friday, 10 October 2008 11:26:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 10 October 2008 11:26:01 GMT