This is a migrated thread and some comments may be shown as answers.

Seeminly false JustCode errors about missing <\a> and </td>

2 Answers 24 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Charles
Top achievements
Rank 1
Charles asked on 27 Feb 2014, 12:30 AM
Justcode is complaining saying I need a </a> and a </td> in my code below just before the </tr>. But my <td> and <a> are closed with  </a> and  </td>  in the line above.  What causes this behavior?  Visual Studio 2010,  JustCode Q3 2013 SP1 (2013.3.1119.1) here is my code
<tr>
    <td> <img src="images/head_05.gif" width="20" height="34" alt="" style="border:0"/></td>
    <td>   <a href="Home.aspx"><img src="images/head_06.gif" alt="" width="43" height="34" style="border:0"/></a></td>
   <td > <a href="Acupuncture.aspx"><img src="Images/Acupuncture.gif" alt="" width="86" height="34"  style="border:0"/></a></td>
    <td> <a href="Testimonials.aspx"><img src="Images/Testimonial.gif" alt=""   width="70" height="34" style="border:0"/>
    <td> <a href="Chinese Medicine2.aspx"><img src="Images/Chinese Medicine.gif"  alt="" width="111" height="34" style="border:0"/></a></td>
    <td> <a href="GiftCertificates.aspx">  <img src="Images/header1_10.gif" alt="" width="102" height="34"  style="border:0"/></a></td>
    <td> <a href="biography.aspx"><img src="images/head_11.gif" alt="" width="30" height="34" style="border:0"/></a></td>
    <td> <a href="contact.aspx"><img src="images/head_12.gif" alt="" width="61" height="34" style="border:0"/></a></td>
    <td> <a href="Directions.aspx"><img src="images/head_13.gif" alt="" width="39" height="34" style="border:0"/></a></td>
  </tr>
The errors were on the last line just before the </tr>
Thanks,
Charles

2 Answers, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 28 Feb 2014, 09:08 AM
Hello,

Thank you for your feedback!

I looked at your code and it seems that <td><a href="Testimonials.aspx">  doesn't have closing </a> and </td> which breaks our error recovery, effectively showing the error at the wrong place. I logged this issue in our backlog and we will improve it in the future. 

<td><a href="Testimonials.aspx">
  <img src="Images/Testimonial.gif" alt="" width="70" height="34" style="border: 0" /> </a>
</td>
fixed the error for me. 

If you have any other problem or suggestions, please don't hesitate to write back

Regards,
Svetlozar
Telerik
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
0
Charles
Top achievements
Rank 1
answered on 01 Mar 2014, 04:53 AM
That was it. Thanks. I feel silly I didn't find it.
Tags
Code Analysis
Asked by
Charles
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Charles
Top achievements
Rank 1
Share this question
or