W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2010

CSS Validator Doesn't Recognize HTML5 <style>

From: Doug Schepers <schepers@w3.org>
Date: Tue, 27 Jul 2010 16:27:55 -0400
Message-ID: <4C4F414B.9090807@w3.org>
To: www-validator-css@w3.org
Hi, Yves-

I was testing my fiance's new simple HTML5 site with Unicorn, and I 
found a couple problems [1].  Since the style is inline in a <style> 
element, and not linked to an external stylesheet, it gave the following 
Unrecognized link element or xml-stylesheet PI.

When I look at that page in the CSS Validator, it makes more sense, 
because it also returns the message at the bottom:
No style sheet found

But out of context, on the Unicorn results page, it's not obvious that 
that is what's going on... maybe the output message should read:
No style sheet found, or unrecognized link element or xml-stylesheet PI.

And it shouldn't be reported as an error, just a message or warning. 
(That might be an issue with Unicorn's results processing, too.)

The second issue is that the CSS Validator doesn't seem to recognize the 
HTML5 <style> element, which doesn't requite the 'type="text/css"' 
attribute.  Tom reports that adding that attribute does work with the 
CSS Validator, so maybe that wouldn't be a difficult fix to add HTML5 

-Doug Schepers
W3C Team Contact, SVG and WebApps WGs
Received on Tuesday, 27 July 2010 20:27:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:08 UTC