- From: Victor Kapustin <vak@mail.nw.ru>
- Date: Sun, 7 Mar 2004 11:40:45 +0300
- To: <www-html@w3.org>
- Cc: "A. Korsun" <a_korsun@itah.icape.ru>
The current draft text:
==
15.2.4. Dynamic modification of documents
The dynamic modification of a document may be modeled as follows:
1. All script elements are evaluated in order as the document is loaded.
==
How could the following javascript code be interpreted:
var scriptElement = document.createElement("script");
scriptElement.setAttribute("type","text/javascript");
scriptElement.setAttribute("src",scriptURL);
var head = document.getElementsByTagName("script")[0].parentNode ;
head.insertBefore(scriptElement,head.firstChild) ;
The <scriptURL> script will be inserted BEFORE the current script. Should it
be evaluated just after insertion? If not, when?
Victor Kapustin vak@mail.nw.ru
Associate Professor
Chair for Applied Information Science in Arts and Humanities
Philology Department
Saint-Petersburg State University,
29 Fourteenth Line of Vassilievsky Island
Saint-Petersburg 199178
Russia
Received on Sunday, 7 March 2004 04:50:01 UTC