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

	http://www.w3.org/TR/xhtml1/#guidelines

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



/Jelks
Received on Friday, 15 February 2002 19:04:53 GMT

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