W3C home > Mailing lists > Public > www-validator@w3.org > August 2011

Re: HTML 5 + CSS <link /> Markup Validator Result

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 30 Aug 2011 08:21:35 +0300
Message-ID: <4E5C735F.80600@cs.tut.fi>
To: www-validator@w3.org
29.8.2011 20:39, Shiva Charles wrote:

> <link rel="stylesheet" type="text/style" href="style.css" /> is
> validated successful but not functional.
>
> <link rel="stylesheet" type="text/css" href="style.css" /> is validated
> successful and functional.

This corresponds to what
<http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-style-type>
says, except that "text/style" should be flagged as an error, as it is 
not a valid MIME type.

A different fault in the validator is that the element passes if you 
specify e.g. type="text/plain". In that case, the value is a valid MIME 
type but it fails to satisfy the requirement ("must") of designating a 
styling language.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 30 August 2011 05:21:50 GMT

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