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

id attribute in style tag

From: Rob McMeekin <rob.mcmeekin@verizon.net>
Date: Sat, 19 Oct 2002 17:50:26 -0400 (EDT)
Message-ID: <000001c277b1$a7d58420$0417fea9@nomad>
To: <www-validator@w3.org>




In section c.14 of the XHTML 1.0 page at
[http://www.w3.org/TR/xhtml1/#guidelines], they give an example where the id
attribute is used in the style tag. However, the following code of mine did
not validate:

    <style type="text/css" id="internalStyle">
      <![CDATA[
               ]]>
    </style>

because of the following error:

    *  Line 20, column 30:

      <style type="text/css" id="internalStyle">
                                ^

      Error: there is no attribute "id" for this element (in this HTML
version)

Sorry, this document does not validate as XHTML 1.0 Strict.

I also tried it with the other two XHTML 1.0 DTDs.

(Rob)
Received on Sunday, 20 October 2002 21:41:02 GMT

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