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  
<http://www.w3.org/TR/1999/REC-html401-19991224/present/styles.html#h-14.2.3>  
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
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Monday, 23 January 2006 16:28:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:55 GMT