Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/01/2011, 09:50
DavidNL
 
Fecha de Ingreso: noviembre-2010
Mensajes: 7
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: Problema con W3C validator

Gracias por tu respuesta armando

He mirado el código fuente desde el firefox y en esas líneas de código no daba ningún error.

He probado a hacer lo siguiente en la primera imagen:
$j('<img src="1.jpg" alt="imagen1" />')[0].src = '<?php echo $templateurl; ?>/images/header/1.jpg';

y al pasar el W3C me dice lo siguiente:

…="/1.jpg" alt="imagen1" />')[0].src =

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).