W3C home > Mailing lists > Public > www-html@w3.org > February 2002

RE: Empty script tags cause trouble.

From: Jelks Cabaniss <jelks@jelks.nu>
Date: Fri, 15 Feb 2002 19:04:26 -0500
To: <www-html@w3.org>
Message-ID: <000b01c1b67d$8237b260$6701a8c0@blackie>
Edwin van Vliet wrote:

> If a shorthand empty script tag is included anywhere in the 
> document, most HTML editors get into trouble, especially the 
> syntax highlighting is all wrong. So the next sample doesn't 
> work well:
> <script type="text/javascript" src="somescript.js" />

> The w3 validator does not return any errors, so I can only 
> think of 2 possible causes:
> 1: a bug in a lot of editors and even browsers
> 2: a bug in the w3 validator

Number 1.

The current generation are still completely XHTML-impaired.  The
guidelines at


don't mention that particular case, but they probably should.

Received on Friday, 15 February 2002 19:04:53 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 15 July 2018 06:07:48 UTC