Foros del Web » Creando para Internet » HTML »

Error de Validación xhtml

Estas en el tema de Error de Validación xhtml en el foro de HTML en Foros del Web. Buenas noches. ¿Me podéis aclara dónde puede estar el error aquí para xhtml? ------------------------------------------ Line 88, Column 5: invalid comment declaration: found delimiter "[" outside ...
  #1 (permalink)  
Antiguo 27/05/2012, 16:55
 
Fecha de Ingreso: noviembre-2005
Mensajes: 889
Antigüedad: 18 años, 5 meses
Puntos: 8
Error de Validación xhtml

Buenas noches.

¿Me podéis aclara dónde puede estar el error aquí para xhtml?

------------------------------------------

Line 88, Column 5: invalid comment declaration: found delimiter "[" outside comment but inside comment declaration

<!--[if lte ie 7]>✉

Line 74, Column 1: comment declaration started here

<!--[if lte IE 6]> Line 88, Column 6: character data is not allowed here
<!--[if lte ie 7]>✉

You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include:

•putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>), or
•forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes), or
•using XHTML-style self-closing tags (such as <meta ... />) in HTML 4.01 or earlier. To fix, remove the extra slash ('/') character. For more information about the reasons for this, see Empty elements in SGML, HTML, XML, and XHTML.

Line 90, Column 4: "endif" is not a reserved name

<![endif]-->


Lo más extraño es que he validado otra web igual y sin problemas.

¿Me podéis orientar sobre qué puede siegnificar?

Gracias.
  #2 (permalink)  
Antiguo 27/05/2012, 21:19
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Error de Validación xhtml

La siguiente sintáxis es válida

Código HTML:
Ver original
  1. <!--[if lt IE 9]>
  2. <script type="text/javascript" src="html5ie8.js"></script>
  3. <![endif]-->
  4.  
  5. <!--[if lt IE 8]>
  6. <script type="text/javascript" src="html5ie8.js"></script>
  7. <![endif]-->

En tu caso no queda muy claro porque estás mostrando el error y no el código que efectivamente has puesto, pasa ese código para verificarlo
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.
  #3 (permalink)  
Antiguo 28/05/2012, 03:05
 
Fecha de Ingreso: noviembre-2005
Mensajes: 889
Antigüedad: 18 años, 5 meses
Puntos: 8
Respuesta: Error de Validación xhtml

Hola emprear.

El código que tengo es así:

Código:
<!--[if lte ie 7]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if ie 8]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie8only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if gte ie 9]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie9only.css" rel="stylesheet" type="text/css" />
<![endif]-->
Y lo extraño es que me funciona perfectamente y valida en otra web.

Exactamente lo mismo.

Muy raro.
  #4 (permalink)  
Antiguo 28/05/2012, 03:56
Avatar de emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Error de Validación xhtml

Esto, tal cual sigue
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" /><!--[if lte ie 7]>
  6. <link href="x/templates/g/css/ie7only.css" rel="stylesheet" type="text/css" />
  7. <![endif]-->
  8. <!--[if ie 8]>
  9. <link href="x/templates/x/css/ie8only.css" rel="stylesheet" type="text/css" />
  10. <![endif]-->
  11. <!--[if gte ie 9]>
  12. <link href="x/templates/x/css/ie9only.css" rel="stylesheet" type="text/css" />
  13. <![endif]-->
  14. </head>
  15. <p>Hola</p>
  16. </body>
  17. </html>

Valida perfectamente, pero como estás pasando el php y no el html generado, no se puede saber con certeza si se te esta agregando algún caracter extraño o algún header inapropiado, habria que ver la url directamente en el server para más detalles
Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.

Etiquetas: xhtml, validar
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:52.