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 209 - Line numbers should start with 1 rather than 0
Summary: Line numbers should start with 1 rather than 0
Status: RESOLVED DUPLICATE of bug 890
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: Other other
: P1 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact:
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-14 10:10 UTC by Paul Arzul
Modified: 2004-10-06 01:34 UTC (History)
0 users

See Also:


Attachments

Description Paul Arzul 2003-05-14 10:10:59 UTC
in this example:

/* line 1
line 2 */
p { text-align: lfet; } /* line 3 */

the error is on line 3, while the css validator reports it on line 2:

* Line: 2 Context : p
Invalid number : text-alignlfet is not a text-align value : lfet

(tested with textarea and file upload.)
Comment 1 Bj 2004-05-23 22:06:05 UTC
Not quite a bug, the Validator starts at line 0, see <http://jigsaw.w3.org/css-
validator/validator?text=a{color:none}>, hence the difference. But I agree that 
this should be changed.
Comment 2 Olivier Thereaux 2004-10-06 01:34:46 UTC
Current code says all lines are 0, moving resolution to Bug #890

*** This bug has been marked as a duplicate of 890 ***