Next message: Karl Dubost: "Re: Minimized tags error"
Date: Wed, 28 Mar 2001 07:02:48 +0000 (UTC)
From: Tim Bagot <tsb-w3-validator-0003@earth.li>
To: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.30.0103280655050.524-100000@windle.hack>
Subject: Re: validation error with script element?
At 2001-03-27T22:03-0800, Michael Newton wrote:-
> i had some xhtml pages with the following line in them:
>
> <script src="default.js" type="text/javascript" defer="defer" />
> shouldn't the validator have told me that the
> minimized format wasn't applicable to this tag?
No. Section 3.1 of the XML recommendation[1] says "Empty-element tags may
be used for any element which has no content, whether or not it is
declared using the keyword EMPTY", although "For interoperability, the
empty-element tag should be used, and should only be used, for elements
which are declared EMPTY."
Tim Bagot
[1] <http://www.w3.org/TR/REC-xml#sec-starttags>