RE: Empty script tags cause trouble.

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 UTC