Foros del Web » Programando para Internet » Javascript »

codigo xhtml en una variable js

Estas en el tema de codigo xhtml en una variable js en el foro de Javascript en Foros del Web. Como puedo evitar este error.. Código: # loading_text: "<img src='loading.gif' /> <br />Cargando mensajes..." ✉ The attribute given above is required for an element that ...
  #1 (permalink)  
Antiguo 20/07/2009, 12:02
Avatar de dooky  
Fecha de Ingreso: diciembre-2002
Ubicación: echo$REMOTE_ADDR;
Mensajes: 493
Antigüedad: 21 años, 4 meses
Puntos: 0
codigo xhtml en una variable js

Como puedo evitar este error..

Código:
#

          loading_text: "<img src='loading.gif' /><br />Cargando mensajes..."

✉

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
# Error Line 26, Column 50: document type does not allow element "img" here

          loading_text: "<img src='loading.gif' /><br />Cargando mensajes..."

✉

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).
# Error Line 26, Column 56: document type does not allow element "br" here

          loading_text: "<img src='loading.gif' /><br />Cargando mensajes..."

✉

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


LLevo años haciendo webs.. pero con html y sin w3c ..

ahora tengo este tipo de problemillas.. xD



espero la ayuda de alguien ;)
__________________
Eduardo Toloza
SatisFactor.io - NPS
  #2 (permalink)  
Antiguo 20/07/2009, 15:23
Avatar de Daniel Ulczyk
Super Moderador
 
Fecha de Ingreso: febrero-2005
Ubicación: Buenos Aires
Mensajes: 9.264
Antigüedad: 19 años, 2 meses
Puntos: 2114
Respuesta: codigo xhtml en una variable js

Tema movido desde el foro de Accesibilidad y Usabilidad
__________________
—Somos lo que hacemos repetidamente. La excelencia, entonces, no es un acto sino un hábito. (Aristóteles dixit)
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 00:24.