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

Re: [SVG Tiny 1.2 CR Comment] interaction of discard and scripting

From: Robin Berjon <robin@berjon.com>
Date: Mon, 23 Oct 2006 09:46:21 +0200
Message-Id: <27C7CEF8-E49E-47E3-9F26-E2F14A5D755F@berjon.com>
Cc: www-svg <www-svg@w3.org>, Nicolas Pierre <nicolas.pierre@streamezzo.com>
To: jean-claude.dufourd@streamezzo.com

On Oct 23, 2006, at 08:27, Jean-Claude Dufourd wrote:
> Consider a script with:
>
>     foo = document.getElementById('bar');
>
> And in the scene tree:
>
>     <discard begin="10s" xlink:href="#bar"/>
>
> Assuming that the script line is executed before 10s, what is the  
> content of variable foo after 10s ?

That's really up to how the language you're using does garbage  
collection, but in common cases it'll be holding the element  
identified by bar, removed from the tree.


-- 
Robin Berjon - http://berjon.com/
-----------------------------------------------------------------------
"The future is here, it's just not evenly distributed yet."
                         -- William Gibson
Received on Monday, 23 October 2006 07:46:34 GMT

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