W3C home > Mailing lists > Public > www-html@w3.org > November 2000

Re: <script> tag

From: Frank Tobin <ftobin@uiuc.edu>
Date: Fri, 17 Nov 2000 01:39:03 -0600 (CST)
To: Gonzalo Rubio <g.rubio@ieee.org>
cc: www-html@w3.org
Message-ID: <Pine.BSF.4.21.0011170136210.19782-100000@palanthas.neverending.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gonzalo Rubio, at 01:46 -0300 on Fri, 17 Nov 2000, wrote:

> Since the <script> tag is and empty tag, can I write <script
> language="javascript" src="whatever.js" />, instead of <script
> language="javascript" src="whatever.js"></script>

According to the XHTML DTD, script is not an empty tag; it contains
PCDATA; hence, you cannot use <script />.

From the DTD: <!ELEMENT script (#PCDATA)>

While the PCDATA may be empty, this not mean that the element <script> is
empty.

- -- 
Frank Tobin		http://www.uiuc.edu/~ftobin/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: pgpenvelope 2.9.0 - http://pgpenvelope.sourceforge.net/

iEYEARECAAYFAjoU4JoACgkQVv/RCiYMT6MVGwCfd92MKcvbuy/3IBeipNhOIjd+
hB4AniWpB+xBEZMcAVhhbSG98p50dqw3
=nB3o
-----END PGP SIGNATURE-----
Received on Friday, 17 November 2000 02:39:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:44 GMT