Re: Bug found while validating XHTML 1.0 strict

* 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 UTC