W3C home > Mailing lists > Public > www-html@w3.org > March 2004

XHTML 2.0: W3C Working Draft 11 December 2002: XHTML Scripting Module Issue

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>
Message-ID: <NDBBJLCNEKMCLIIAEOHBEECHDIAA.vak@mail.nw.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

This archive was generated by hypermail 2.3.1 : Tuesday, 18 February 2014 13:20:08 UTC