Forum Moderators: open
<script type='text/javascript'>var a = new Array('or','f.','n@','ad','mi','mv','uu','g');document.write("<a href='mailto:"+a[3]+a[4]+a[2]+a[5]+a[6]+a[1]+a[0]+a[7]+"'>"+a[3]+a[4]+a[2]+a[5]+a[6]+a[1]+a[0]+a[7]+"</a>");</script>
Validator error: document type does not allow element "a" here
Position where error detected: the right angle bracket after the eight numerals after the mailto
Any way to fix?
validation requires the escaping of the closing a tag...
<\/a>
end tag for "a" omitted, but OMITTAG NO was specified
Position where error detected: the right angle bracket after "/script"
The remainder of the errors are probably cascading errors.
Any suggestions?
<script type="text/javascript"><!--//--><![CDATA[//><!--
...
//--><!]]></script>
see [hixie.ch...]
This is what I did:
<script type="text/javascript"><!--//--><![CDATA[//><!-- var a = new Array('or','f.','n@','ad','mi','mv','uu','g');document.write("<a href='mailto:"+a[3]+a[4]+a[2]+a[5]+a[6]+a[1]+a[0]+a[7]+"'>"+a[3]+a[4]+a[2]+a[5]+a[6]+a[1]+a[0]+a[7]+"<\/a>"); //--><!]]></script>