This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16347 - don't complain about lack of type attribute
Summary: don't complain about lack of type attribute
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 19:15 UTC by Anne
Modified: 2012-03-14 10:52 UTC (History)
2 users (show)

See Also:


Attachments

Description Anne 2012-03-13 19:15:05 UTC
<style> or <link> without a type attribute is fine. No reason I "should add" one.
Comment 1 Michael[tm] Smith 2012-03-14 01:22:59 UTC
To be clear, HTML5 makes the type attribute optional

For reference:

http://dev.w3.org/html5/spec/the-link-element.html#attr-link-type
http://dev.w3.org/html5/spec/the-style-element.html#attr-style-type

And browsers handle link and style content just fine if the type attribute is omitted. So for authors there really is not much point in including it and for validators there is not much point in checking for it or reporting anything about it.
Comment 2 Ms2ger 2012-03-14 10:52:52 UTC
In particular, this seems rather out of scope for a *CSS* validator.