W3C home > Mailing lists > Public > www-validator@w3.org > March 2001

validation error with script element?

From: Michael Newton <michael.newton@telus.net>
Date: Tue, 27 Mar 2001 22:03:57 -0800
Message-Id: <>
To: www-validator@w3.org
i had some xhtml pages with the following line in them:

<script src="default.js" type="text/javascript" defer="defer" />

they validated just fine, but refused to render properly on older 
browsers.  xhtml browsers (mozilla and amaya) worked just fine.  i realised 
afterwards that script is not an empty element, so i had to change it to:

<script src="default.js" type="text/javascript" defer="defer"></script>

and everything worked fine.  shouldn't the validator have told me that the 
minimized format wasn't applicable to this tag?

"This life has been a test.  If it had been a real life, you would have
  been given instructions on where to go and what to do."  -Angela Chase

michael.newton@telus.net                           +1.604.202.5717

PO Box 29023 RPO Haney                                 PO Box 2118
Maple Ridge BC  V2X 0C5                       Sumas WA  98295-2118
CANADA                                                         USA
Received on Wednesday, 28 March 2001 01:04:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:20 UTC