W3C home > Mailing lists > Public > www-validator@w3.org > April 2011

Re: Problem with w3c-Validator

From: Leif H Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Sun, 24 Apr 2011 19:23:59 +0200
To: info@planb-deutschland.de
Cc: www-validator@w3.org
Message-ID: <2334982876.988140239@xn--mlform-iua.no>
 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.
Received on Sunday, 24 April 2011 17:24:56 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:03 UTC