#26 Line number bug

closed
nobody
None
5
2009-10-22
2008-07-09
AlbertW
No

I think I found a bug when checking this:

<script language="JavaScript" type="text/JavaScript">
epNavn = 'gullflue';
epProv1 = 'no';
epProv2 = '?subject=Edmund_Sobkowiak.html';
epProv3 = 'start'
epProv4 = '.';
epLenke = 'webmaster';
document.write('<a href="mailto:' + ep + '">' + epLenke + '</a>')
</script>

Output is:

JavaScript Lint 0.3.0 (JavaScript-C 1.5 2004-09-24)
Developed by Matthias Miller (http://www.JavaScriptLint.com)

AlTest.html
C:\jsl\AlTest.html(6): lint warning: missing semicolon
epProv4 = '.';
^

C:\jsl\AlTest.html(9): lint warning: missing semicolon
document.write('<a href="mailto:' + ep + '">' + epLenke + '</a>')
.................................................................^

0 error(s), 2 warning(s)

The problem is the last warning. It says it is on line 9 when it is on line 8. This causes problems with the integration with CSE HTML Validator because it won't point to the correct line.

Discussion

  • AlbertW
    AlbertW
    2008-07-09

    source doc to reproduce bug

     
    Attachments
    • status: open --> closed
     
  • This has been fixed in the Python version (in trunk).