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 8254 - Type attribute in link element may include more than just the media type
Summary: Type attribute in link element may include more than just the media type
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: Other All
: P2 normal
Target Milestone: ---
Assignee: Abel Rionda
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 11:02 UTC by fd
Modified: 2009-11-30 16:12 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-11-10 11:02:48 UTC
More precisely, the definition of media type includes the parameters, and the following is thus possible:
 <link rel="stylesheet" href="styles.css" type="text/css; charset=utf-8"/>

(even though the charset attribute would be a better idea in that case)

The mobileOK Checker only matches stylesheets when the type attribute contains "text/css" and nothing else. The above stylesheet would be ignored, meaning that it would not be taken into account for page size and that no tests would be run on the stylesheet.
Comment 1 fd 2009-11-30 16:12:20 UTC
CssResourceExtractor updated to only take the part of the type attribute before the ";" if one is present.