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 6933 - CSS styles: matches on media types are too loose
Summary: CSS styles: matches on media types are too loose
Status: NEW
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Windows 3.1
: P2 minor
Target Milestone: ---
Assignee: Dominique Hazael-Massieux
QA Contact:
URL: www.lavacochesnely.es
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 16:27 UTC by fd
Modified: 2013-05-01 15:48 UTC (History)
1 user (show)

See Also:


Attachments

Description fd 2009-05-20 16:27:11 UTC
Extracted CSS styles are restricted to "handheld" and "all" media types, but the extraction is done using some loose check such as:

 if (contains(media, "all")) then [foo] endif

"contains" is loose. The above example would match:
 <link href="styles.css" rel="stylesheet" type="text/css" media="wall">

The following code files are impacted:
 StyleSheetsUseTest.xsl
 CssResourceExtractor.java
 CSSUtils.java
Comment 1 lavacochesnely 2013-05-01 15:48:31 UTC
<![endif]-->