W3C home > Mailing lists > Public > www-svg@w3.org > December 2004

Re: LC Comment - Script & Progressive Rendering / Multiple Pages

From: Jon Ferraiolo <jon.ferraiolo@adobe.com>
Date: Wed, 01 Dec 2004 06:52:31 -0800
To: Jim Ley <jim@jibbering.com>, www-svg@w3.org
Message-id: <6.1.1.1.2.20041201063907.0467cee8@mailsj-v1.corp.adobe.com>

Jim,
It sounds like you don't like the language in the SVG 1.2 Last Call 
relative to when scripts are executed (http://www.w3.org/TR/SVG12/events.html):

"Script execution happens only at load time. Removing, inserting or 
altering script elements once the document has been loaded has no effect."

My guess is that you would prefer the following wording:

"Any scripting logic associated with a given <script> element is executed 
at most once. Script execution happens just after the "load" event occurs 
for the given <script> element. (Exception: if an ancestor has 
externalResourcesRequired=true, then script execution happens on the "load" 
event for that ancestor.) Removing, inserting or altering script elements 
once the document has been loaded has no effect."

Comments?

Jon

At 05:33 PM 11/30/2004, Jim Ley wrote:


>"Andrew Sledd" <Andrew.Sledd@zoomon.com> wrote in message
>news:586AE9F507AF5E4AA45364333D9E2FA201032706@sesthsrv02.zoomon.local...
>
> >Are we to infer that this means the whole document must be loaded
> >before the script is executed? Thus usefulness of combining script
> >and progressive rendering and/or multiple pages will be limited.
>
>This isn't even the current behaviour, nor the behaviour of any mark-up
>language, script is executed when the script element is parsed, I think it's
>clear this is not the case, but obviously not.
>
> >We propose that script elements when in a time container with
> > timelineBegin="onStart" should be interpreted/executed upon
> >load of the script element.
>
>No, all script elements should be executed immediately as now. (external
>scripts with externalResourcesRequired false being the one exception,
>analgous to the defer attribute in HTML)  Certainly no change to the
>existing behaviour should be considered, and changing from the behaviour of
>all other markup languages and scripts should be very much a last resort.
>
> >  <svg timelineBegin="onStart">
> >    <script> document.getElementById("foo").setTrait("visibility",
> > "visible");</script>
> >    <rect id="foo" visibility="hidden">
> >  </svg>
> >
> >Would not render the rectangle, while
>
>This should result in a script error.
>
>Jim.
Received on Wednesday, 1 December 2004 16:03:15 GMT

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