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 759 - Validator does not follow link elements lacking a type attribute
Summary: Validator does not follow link elements lacking a type attribute
Status: REOPENED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: Other other
: 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: 2004-05-28 23:49 UTC by Bj
Modified: 2011-08-22 11:42 UTC (History)
1 user (show)

See Also:


Attachments

Description Bj 2004-05-28 23:49:53 UTC
From http://jigsaw.w3.org/css-validator/BUGS.html

''The CSS validator will not acknowledge CSS loaded via a <link> which does not 
explicitly declare `type="text/css"', even when the server correctly serves the 
stylesheet as text/css.''
Comment 1 Karl Dubost 2010-06-01 23:59:36 UTC
We need a test hosted on a server.

* a CSS file, style1.css, with 1 warning into it and must be served as text/css
* a CSS file, style2.css, with 1 error into it and must be served as text/css
* a normal file, plain.txt  must be served as text/plain

And the following html markup

<!doctype html>
<html>
<title>Test Bug 759</title>
<link type="text/css" href="style1.css"/>
<link href="style2.css"/>
<link href="plain.txt"/>
<p>This is a test for <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=759">Bug 759</a> of CSS Validator</p>
</html>


style1.css must report 1 warning
style2.css must report 1 error
plain.txt must  be ignored by the validator.

It means parsing the list of file and before processing checking the mime type on the server. If mime type is not "text/css", ignore it.
Comment 2 Yves Lafon 2011-08-22 11:42:43 UTC
I created the test at http://www.w3.org/2011/08/css-tc/759-1.html
It tests stylesheet links with CSS and non-CSS type information
stylesheet links with no type information, and sent using CSS and non CSS media type
non-stylesheet link with CSS type.

The current version fail only on the non-CSS type styleshet link served as text/plain, which should be ignored.