RE: <script> elements running only once

Hi Cameron,

Hmm.. how would you decided whether that script has already been inserted? I.e. what if I do move the position of an existing script node? This would cause the script to be re-eval'd again.. I am really uncertain if we should really allow such modifications after the script context and everything has been established as this could lead to more issues than it'd solve.. and it'd also open some more security issues (i.e. infinite loading loops on onload and such things). What you think?

mfG / Regards,
Alexander Adam
CEO / Geschäftsführer

examotion GmbH
Karl-Grillenberger-Str. 1/1a
90402 Nuernberg

Phone:  +49 911 - 59650-68
Fax:    +49 911 - 59650-69

Geschäftsführer: Alexander Adam
Amtsgericht Nürnberg HRB Nr.: 23803 
Gerichtsstandort: Nürnberg

LEGAL DISCLAIMER: The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful.

> -----Original Message-----
> From: []
> On Behalf Of Cameron McCormack
> Sent: Montag, 9. Juni 2008 09:44
> To:
> Subject: Re: <script> elements running only once
> Hi Alex.
> Alexander Adam:
> > I'd like to note that it's hard to re-execute scripts once they're
> > in the context it's almost impossible to take them out again if the
> > script engine doesn't support it. For example, Renesis uses Jscript
> > and we do not have any chance to get it out except shutting the whole
> > engine down, then restarting it and re-inserting all scripts..
> Yeah, I don’t think the scripts should be “removed” if the <script>
> element is removed from the document.  (Neither the SVG Tiny 1.2 text
> nor the HTML 5 text require that.)  Re-executing a <script> element
> shouldn’t be hard though, if we decided to keep that requirement, since
> it should be just the same as ‘eval’ing the text content of the element.
> --
> Cameron McCormack ≝

Received on Monday, 9 June 2008 07:51:40 UTC