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

Re: Bug found while validating XHTML 1.0 strict

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 09 Sep 2003 06:53:14 +0200
To: "Andrew Miller Web Design" <webdesign@andrewmillerwebdesign.com>
Cc: www-validator@w3.org
Message-ID: <3f835741.837885014@smtp.bjoern.hoehrmann.de>

* Andrew Miller Web Design wrote:
>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. 

You are wrong. It is legal to use the empty element syntax for all XHTML
elements. You should not do that if you deliver your document as
text/html but the Validator does not check whether the document meets
the constraints of Appendix C of XHTML 1.0.
Received on Tuesday, 9 September 2003 00:55:48 GMT

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