W3C home > Mailing lists > Public > www-validator@w3.org > February 2008

document type does not allow element "style" here

From: Jürgen Schmid <JueSchmid@t-online.de>
Date: Thu, 14 Feb 2008 13:17:08 +0100
To: <www-validator@w3.org>
Message-ID: <005001c86f03$852f3e30$6d7ba8c0@wxpjs004>

I am using drupal (www.drupal.org) with the jRating-Module
(http://drupal.org/project/jrating).

This module puts the following lines into the html:

<script type="text/javascript">$("head").append("<style
type='text/css'>form.rating{display:none}</style>");
	if ($.browser.safari){ $("head").find("style:last").append(" ")
}</script>

The validator tells me:

Line 51, Column 71: document type does not allow element "style" here.

…ript">$("head").append("<style
type='text/css'>form.rating{display:none}</style>");

I can't see, what is wrong with the script. The developer of the module
tells me, that the script is ok.

I would be glad if anybody could tell me, it the script is incorrect or if
it's a bug in the validator.
Received on Thursday, 14 February 2008 17:45:47 GMT

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