W3C home > Mailing lists > Public > www-validator@w3.org > September 2003

Bug found while validating XHTML 1.0 strict

From: Andrew Miller Web Design <webdesign@andrewmillerwebdesign.com>
Date: Fri, 5 Sep 2003 13:45:30 -0500 (CDT)
Message-ID: <1310. m>
To: www-validator@w3.org

(Please copy me on any responses to this mail, as I am not yet on this
mailing list...)

The following line was validated by W3C validator using XHTML 1.0 strict:

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

Correct me if I'm wrong, but <script> always needs a closing tag. 
Naturally without the closing tag, many browsers (Opera 6, MSIE 6, etc)
wouldn't display the page.

Once I made the change to:

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

The page still validated as XHTML 1.0 strict, and no longer broke
various browsers.

So, is this is a bug in the validator, or does XHTML 1.0 strict truly
not require a closing script tag?

Andrew Miller
PO Box 2194
Iowa City, IA 52244


Received on Friday, 5 September 2003 15:02:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:38 UTC