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 10474 - Duplicate inline CSS code is checked only once
Summary: Duplicate inline CSS code is checked only once
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 16:28 UTC by fd
Modified: 2010-08-30 12:21 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-08-27 16:28:09 UTC
If the same CSS content appears more than once in a style attribute, the mobileOK Checker only checks the validity of the last occurrence.

An error should be returned for each and every occurrence of a problem

Example:
 <div style="unknown:medium;">Occurrence 1</div>
 <div style="unknown:medium;">Occurrence 2</div>
 <div style="unknown:medium;">Occurrence 3</div>

This behavior is due to the use of a map in CssResourceExtractor to extract inline CSS content.
Comment 1 fd 2010-08-30 12:21:41 UTC
Map replaced with a simple list in CssResourceExtractor to make sure that errors for embedded and inline CSS content get reported each time.

Related test case in the test suite:
STYLE_SHEETS_USE 17