W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2006

[html401] "type" attribute of the <style> element

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 23 Jan 2006 17:28:04 +0100
To: "www-html-editor@w3.org" <www-html-editor@w3.org>
Message-ID: <op.s3uao2y064w2qv@id-c0020.oslo.opera.com>

With regard to  
I suggest that the HTML WG follows what the SVG specifications say and  
what UAs commonly have implemented for HTML namely that the "type"  
attribute is optional and a default value is "text/css" or determined by  
some HTTP header which in turn defaults to "text/css".

If the WG does not accept this issue my question becomes how UAs should  
handle <style> elements with no "type" attribute set.

There is another issue as well. What should UAs do with a "type" attribute  
whose value is not recognized? Clear processing rules would be  
appreciated. For example, is <style type="text/css;charset=utf-8"> allowed?

Anne van Kesteren
Received on Monday, 23 January 2006 16:28:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:54 UTC