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 7208 - Inline CSS: incorrect line numbers returned by the XML parser
Summary: Inline CSS: incorrect line numbers returned by the XML parser
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: Abel Rionda
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-03 15:51 UTC by fd
Modified: 2010-04-30 16:14 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-08-03 15:51:11 UTC
CSS errors and warnings that are triggered from inline CSS styles (i.e. defined in style attributes) contain the line of the style within the containing XHTML page.

The line is returned by the XML parser and set in CssResourceExtractor.extractInlineCSS.

The line number is usually more than what it should be. See for instance the warning returned in the moki document of the MEASURES 3 test in the test suite.
Comment 1 fd 2010-04-30 16:14:46 UTC
The preservation of line numbers in the DOM tree for Bug 9583 fixes this bug as well. Line numbers are correctly returned. I removed column numbers (which were always 0)