Jump to content

validation error


friendmaz
 Share

Recommended Posts

Hi,When validating, I get Line 68 column 31: there is no attribute "alt". <li><a href="leclub.php" alt="organisation vocation et historique" title="orga . . .I can't figure out the problem as there are other lines that seems to be identical, yet they get validated.In firefox, all works well, in IE6 or IE7, I do get a error. saying "line 40, character 2" .it expects a "(", but I'm having a hard time finding out what line it is referencing. I don't know if they count blanks ? comments ? multiple lines count as 1 ?TIA

<!--begin div menu-->	<div id="menu">		 <p><a href="index.php"><img src="images/grandbi1.gif" alt="page d'accueil" title="page d'accueil" border="0" width="140" height="110" /> </a> </p>	  <p> </p>	  	  <ul>		<li><a href="leclub.php" alt="organisation vocation et historique" title="organisation vocation et historique">Le Club</a></li>		<li><a href="vieclub.php" alt="évènements récents" title="évènements récents">La vie du Club</a></li>				<li><a href="venez_rouler.php" alt="sorties de club organisées" title="sorties de club organisées">Sorties de Club</a></li>				<li><a href="#" class="fleche">Projets 2007</a> 			<ul>				<li> <a href="organisations.php">La flèche pascale 6 et 7 avril</a></li>				<li> <a href="organisations.php#sejour">Séjour en Corrèze 17 à20 mai</a></li>				<li> <a href="organisations.php#ballons">Les trois ballons 9 juin</a></li>				<li> <a href="organisations.php#aurillac">Clermont Aurillac Clermont 23 et 24 juin</a></li>				<li> <a href="organisations.php#copains">Les copains 1er juillet</a></li>				<li> <a href="organisations.php#semaine">Semaine fédérale 5 à 12 août</a></li>				<li> <a href="organisations.php#paris">Paris-Brest-Paris 20 à 24 août</a></li>			</ul>				</li>			<li><a href="Mozacoise.php" alt="Rallye sur route" title="Rallye sur route">Randonnée Mozacoise 2007</a></li>		<li><a href="randonnee_des_puys.php" alt="Rando VTT" title="Rando VTT">Rando des Puys 2007</a></li>		<li><a href="calendMCC.php" alt="calendrier du club" title="calendrier du club">Calendrier MCC 2007</a></li>		<li><a href="Calendriers.php" alt="calendriers fédérations et liens divers" title="calendriers fédérations et liens divers">Calendriers liens</a></li>		</ul>			<p> </p>		<p> </p>		<p> </p>			 <p><a href="mailto:bruno@mozaccycloclub.com">Contactez nous</a></p>	 			  	</div><!--end div menu-->

www.mozaccycloclub.com

Link to comment
Share on other sites

In firefox, all works well, in IE6 or IE7, I do get a error. saying "line 40, character 2" .it expects a "(", but I'm having a hard time finding out what line it is referencing. I don't know if they count blanks ? comments ? multiple lines count as 1 ?
To generate the line and column numbers, IE takes a random number, multiplies that by the square root of pi, then divides that value into the timestamp that IE gets from time.gov, and then it hashes that value with the current total population of the planet. The result is a number that has apparently no bearing on anything in the code. So, IE isn't the best program to help debug Javascript. If you're trying to debug Javascript, Firefox and Opera have far better error consoles that will give you the actual line number (from the code itself!), and Opera will even show the specific line of code with a little pointer to the exact character that it's complaining about. I'm not sure what Firefox does specifically, but I know it's better then IE. Once I knew someone who didn't know how to program at all, got brain damage, entered a coma, and still managed to produce a better Javascript debugger then what IE has. Without a computer even.Also, just to point out, the errors that IE shows are not HTML errors, they are Javascript errors. Browsers do not show HTML errors.
Link to comment
Share on other sites

Yes the line numbers that IE gives are usually worthless because (it appears) IE combines all included files then counts the line numbers instead of telling you something meaningful like what line of which file the error occurs.I never debug JS in IE (even when I have to write an IE only Intranet app) I always use the error console in Firefox.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...