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: <5.0.2.1.2.20010327215703.00b15ea0@pop.telus.net>
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?

mike.
----
"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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:55 GMT