document type does not allow element "style" here

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 UTC