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

Re: http://validator.w3.org/ bug with <style id>

From: Liam Quinn <liam@htmlhelp.com>
Date: Mon, 16 Sep 2002 23:10:57 -0400 (EDT)
To: Eric Gillespie <epg@pretzelnet.org>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.33L2.0209162310160.17826-100000@localhost.localdomain>

On Mon, 16 Sep 2002, Eric Gillespie wrote:

> Running <http://pretzelnet.org/~epg/tmp/test.html> through the
> on-line validator produces the following error:
>
>     *  Line 11, column 14:
>
>       <style id="internal-style" type="text/css" media="screen,
>       print, t ...
>                 ^
>
>       Error: there is no attribute "id" for this element (in
>       this HTML version)
>
> The document where i first noticed this began life as a lazy HTML
> document, not compliant to any standard.  I followed the
> recommendations in <http://www.w3.org/TR/xhtml1/#guidelines>
> "HTML Compatability Guidelines" to make it a backwards-compatible
> document, that validates to the XHTML 1.0 Strict DTD.  Later i
> noticed section C.14, which recommends using the xml-stylesheet
> PI.
>
> Unfortunately, despite that document's recommendations, the
> validator does not think the <style> element has an id attribute.
> Is this a bug in the validator or the DTD?

There is no "id" attribute for the "style" element in HTML or XHTML.

-- 
Liam Quinn
Received on Monday, 16 September 2002 23:11:00 GMT

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