Re: Problem with w3c-Validator

 Lühmann om 24.4.'11,  0:06: 
> <script type="text/javascript">
> document.getElementById('ajax_profil').innerHTML = '<a href="avatar/OMcdAJOMsD_l.jpg" class="single_image"><img src="avatar/OMcdAJOMsD_l.jpg" alt="OMcdAJOMsD" class="avatar_img_right" /></a>';
> </script>The Validator means, it is not allowed to place an <a>-element here. Maybe I'm wrong, but i can place images and any other element here, but not an <a>-element.The page is not finished, why I can't send the adresse.

The HTML 4 validator considers that the string </ ends the script element. That string is present in  in end tags. There is no end tag for the img element. But <a> has one.
Leif

Received on Sunday, 24 April 2011 17:24:56 UTC