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

Re: <script> elements running only once

From: Doug Schepers <schepers@w3.org>
Date: Sun, 08 Jun 2008 21:31:31 -0400
Message-ID: <484C87F3.8090307@w3.org>
To: public-svg-wg@w3.org

Hi, Cam-

Cameron McCormack wrote (on 6/8/08 9:06 PM):
> http://www.w3.org/TR/SVGMobile12/script.html#ScriptContentProcessing
> says that <script> elements are executed when they are inserted into the
> document.  However, I noticed that both Opera 9.5b2 and Firefox 3rc1
> handle SVG <script> elements in the same way as HTML 5 <script>
> elements, i.e. once a <script> element executes, it will not be executed
> again when removed from and then reinserted into the document:
> 
>   http://dev.w3.org/html5/spec/#running
> 
> Do we want to align to HTML here?  (We can ignore the defer/async stuff
> for now.)

I think aligning is a good idea.  I recall the discussion behind this, 
and I thought we had pretty good rationales, but there may be good 
reasons to change it.

On the other hand, perhaps we should also raise the issue with the HTML 
WG... it might be that the behavior we prescribe actually fits better 
(or equally well) with what existing content expects.  How about 
Safari/WebKit and IE... how do they behave?

Regards-
-Doug Schepers
W3C Team Contact, SVG, CDF, and WebAPI
Received on Monday, 9 June 2008 01:32:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 June 2008 01:32:07 GMT