W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2009

Re: HTML 5 and the type attribute

From: TAKAHASHI Makoto <hobbit_mak@yahoo.co.jp>
Date: Mon, 7 Sep 2009 09:55:29 +0900 (JST)
Message-ID: <20090907005529.24222.qmail@web3310.mail.ogk.yahoo.co.jp>
To: Lars Gunther <gunther@keryx.se>, www-validator-css@w3.org
> 
> In HTML 5 it is legal, and it is been supported by
> every browser for a 
> long time, to omit the type attribute on the style
> element starting tag.
> 
> However, the CSS validator still seems to require
> the type attribute. 
> I.e. a page containing this code will have its CSS
> code validated:
> 
> <style type="text/css">
> /* CSS rules here */
> </style>
> 
> This code will be ignored:
> 
> <style>
> /* CSS rules here */
> </style>
> 
 This is not the bug about HTML 5 only.
 In HTML 4.01 and XHTML 1.1 Markup validation Service did
not complain the line below.

<link rel="stylesheet" href="xx/xxx.css">

But CSS Validator ignore the css files specified above.

                                      TAKAHASHI Makoto.

--------------------------------------
Thanks 10 years!  Yahoo! Shopping and Yahoo! Auctions
http://pr.mail.yahoo.co.jp/ec10years/
Received on Monday, 7 September 2009 00:56:12 GMT

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