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

Re: Style tag not validated correctly for HTML 4.01

From: Liam Quinn <liam@htmlhelp.com>
Date: Tue, 28 Oct 2003 22:02:59 -0500 (EST)
To: Gavin Lambert <gavinl@compacsort.com>
Cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0310282159400.7942-100000@localhost.localdomain>

On Wed, 29 Oct 2003, Gavin Lambert wrote:

> I just tried the validator at <http://validator.w3.org/check>, and it
> seems to have a bug:
> I'm doing an HTML 4.01 Transitional validation, and it claims "document
> type does not allow element "STYLE" here".
> "Here", in this case, being inside the <HEAD> element.  Of course,
> according to section 14 of the HTML 4.01 spec, that's where it should
> be.
> Things just go downhill from there, as the next error I get is "end tag
> for element "HEAD" which is not open"; reacting to closing the HEAD
> element after closing the STYLE element (which is, I repeat, directly
> contained in the HEAD element).

It would be easier to diagnose if you provided the URI of an example.  
I'd guess that you're ending the HEAD element before the STYLE element by
using loose text or XML syntax for empty tags.  (Don't use XML syntax in 
HTML 4.)

Liam Quinn
Received on Tuesday, 28 October 2003 22:05:57 UTC

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