<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10468</bug_id>
          
          <creation_ts>2010-08-27 14:28:51 +0000</creation_ts>
          <short_desc>Returned line number may target end of problematic definition</short_desc>
          <delta_ts>2010-08-27 14:28:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Parser</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="fd">fd</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38007</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2010-08-27 14:28:51 +0000</bug_when>
    <thetext>While not technically speaking a bug, this can be confusing, see example 1 below.

Line numbers should rather represent the position where the problem starts, not the position where the problem ends. Given that the message returned with the position includes the portion that triggers the error, it should be relatively easy to return the starting position.

Example 1: checking
@unknown {
 p {
  font-size: 2em;
 }
}
... returns &quot;5 Parse Error @unknown { p { font-size: 2em; } }&quot;, pointing out that the problem occurs at line 5. I&apos;d expect 1.


Example 2: checking
p {
 unknown:
  10em;
}
... returns &quot;3 p Property unknown doesn&apos;t exist&quot;, pointing out that the problem occurs on line 3. I&apos;d expect 2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>