W3C home > Mailing lists > Public > www-validator@w3.org > December 2006

[VE][64] An "img" in a javascrpit function

From: LANGUY Fabian <flanguy@infonie.be>
Date: Tue, 26 Dec 2006 22:57:21 +0100
Message-ID: <45919AC1.8050206@infonie.be>
To: www-validator@w3.org

I can't see any mistake here :

<h3 id="Fabian"> Fabian <script type="text/javascript">courriel("<img 
src='images/img-menu/mail.gif' alt='mail' 
/>","flanguy","infonie.be")</script> | <a style="font-size:0.8em" 
href="equipe-folle.php#Fabian">  L'autre description</a></h3>

Where the javascript function is
function courriel(texte,alias,serveur) {
    document.write('<a href="mailto:' + alias + '@' + serveur + '">' + 
texte +'</a>');
}

Validating http://www.webkot.be/~kapnord/equipe.php
Error [64]: "document type does not allow element X here"
Received on Wednesday, 27 December 2006 16:50:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:23 GMT