Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/03/2010, 04:21
manumar
 
Fecha de Ingreso: marzo-2009
Ubicación: yokze
Mensajes: 177
Antigüedad: 15 años, 8 meses
Puntos: 3
Respuesta: Error en validacion w3c (codigo html en var js)

Ok, gracias por responder.
Aqui va ^^

Line 19, Column 37: document type does not allow element "a" here

TXTentrar['ES']="<a href='esp.html'>Entrar</a>";

Y así con los 2 restantes...



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Código Javascript:
Ver original
  1. function terminos(x)
  2.     {
  3.     var TXTentrar=new Array();
  4.     TXTentrar['ES']="<a href='esp.html'>Entrar</a>";
  5.     TXTentrar['EN']="<a href='eng.html'>Enter</a>";
  6.     TXTentrar['FR']="<a href='fren.html'>Entrer</a>";