Problem with w3c-Validator

Hello,

1. sorry for my bad english.

2. I use the w3c-Validator as much as possible. Now i've tried to write in Javascript an url on my site, but the w3c-Validator show an error.

This is my script

<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. Best regards

NOTE: Whenever possible, give the address of the document you were checking.

Received on Sunday, 24 April 2011 16:47:26 UTC