Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/07/2011, 05:37
JUMASOL
 
Fecha de Ingreso: noviembre-2005
Mensajes: 889
Antigüedad: 19 años
Puntos: 8
Validación XHMTL de fragmento con JavaScript 2

Un fragmento de JavaScript que debe ir dentro del body aparece como no validable:

Concretamente:

if (this.displayedPage < lastPage)

Que arroja este error:

Line 117, Column 30:

character "<" is the first character of a delimiter but occurred as data

if (this.displayedPage < lastPage)

This message may appear in several cases:

•You tried to include the "<" character in your page: you should escape it as "&lt;"
•You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
•Another possibility is that you forgot to close quotes in a previous tag.

Tal vez no se pueda validar, ya que no es xhtml.

Si se puede, agradecería una opinión al respecto.

Gracias.