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 10472 - CSS validation line numbers for embedded and inline are not offset
Summary: CSS validation line numbers for embedded and inline are not offset
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 15:59 UTC by fd
Modified: 2010-08-30 12:14 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-08-27 15:59:50 UTC
The line number of CSS validation messages for CSS styles that appear within the HTML code must be offset by the appropriate line number at which the CSS content starts within the HTML code. That's not the case in the moki document and not the case in the resulting report either.
Comment 1 fd 2010-08-30 12:14:24 UTC
FragmentRetrievalElement instances created to reference the different inline and embedded CSS content that appear in the page under test now contain the correct line number at which the <style> element or the "style" element appears in the HTML content.

This line number is then used to offset the line numbers returned by the CSS validator.


Notes:
- The "rootElementLine" attribute of the docContent element in the moki representation has been removed as well. It was both wrong and useless.

- The CSS validator often returns the position at the "end" of the problem, and not at the beginning, which is often confusing. See Bug 10468.

Related test case in the test suite:
STYLE_SHEETS_USE 8