W3C home > Mailing lists > Public > www-validator-css@w3.org > June 2012

Re: Google's HTML5 Stylesheet

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 4 Jun 2012 10:40:45 -0400 (EDT)
To: "Jens O. Meiert" <jens@meiert.com>
cc: andrew <123and@gmail.com>, www-validator-css@w3.org
Message-ID: <alpine.DEB.1.10.1206041039340.31858@wnl.j3.bet>
On Thu, 10 May 2012, Jens O. Meiert wrote:

>> http://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml#Protocol
>>
>> "Do not use type attributes for style sheets (unless not using CSS) and
>> scripts (unless not using JavaScript)."
>>
>> Whereas the W3C validator is giving a warning (see image).
>
> What DOCTYPE does your test document use?
>
> The guideline has to be seen in the context of HTML 5:
> <http://google-styleguide.googlecode.com/svn/trunk/htmlcssguide.xml?showone=Document_type#Document_type>.
>
> See e.g. how HTML 5 handles @type on <link> [1], <style> [2], and
> <script> [3] elements.
>
Note that as we were forced to revert from an html5 parser back to 
rock-solid tagsoup, it is likely that the html5 detection is broken and 
that this message appears unduly...

> [1] http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-link-type
> [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-style-type
> [3] http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#attr-script-type
>
> --
> Jens O. Meiert
> http://meiert.com/en/
>
>

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Monday, 4 June 2012 14:44:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:29 GMT