W3C home > Mailing lists > Public > public-html-comments@w3.org > September 2010

Re: suggestion for the HTML5 specs

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 6 Sep 2010 22:24:18 +0000 (UTC)
To: Kertész Gábor <kertesz.gabor@t-online.hu>
cc: public-html-comments@w3.org
Message-ID: <Pine.LNX.4.64.1009062223000.27869@ps20323.dreamhostps.com>
On Fri, 3 Sep 2010, Kertsz Gbor wrote:
> 
> Why don't you allow a src attribute for the style element? 
>
> With a minimal modification to the current HTML5 specs it would allow to 
> reference an external stylesheet appropriately with the style element, 
> making it symmetrical with script. This way the awkward legacy <link 
> rel="stylesheet" href="..."> form could be phased out.

You can already do this in two different ways:

   <link rel=stylesheet src="foo">

   <style> @import "foo"; </style>

Adding a third way would not let us remove either of the existing two 
ways, since there are literally billions of documents that already use 
these forms that will never be updated.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 6 September 2010 22:24:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:05 GMT