On Jun 6, 2011, at 4:05 AM, Jukka K. Korpela wrote:

> The type attribute isn't really needed in <link rel="stylesheet" ...>, as 
> browsers imply CSS

Hmm, not really. Or rather, not totally. If the stylesheet is served with a 
mime-type / http-header that is _not_ 'text/css', then browsers will totally 
ignore it in Standards mode, and sometimes accept it in Quirks mode (only when 
coming from the same origin, iirc - the conditions have tightened quite a bit 
over the years).

In cases like Kashif's (error in the value of the attribute), the stylesheet is 
ignored because the value of the attribute must be exactly 'text/css'.

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#attr-link-type
[quote]
The type attribute gives the MIME type of the linked resource. It is purely 
advisory. The value must be a valid MIME type.
[/quote]

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to