Comunidad de diseño web y desarrollo en internet online

Validacion de xHTML 1.0 Transitional

Citar            
MensajeEscrito el 05 Ago 2008 08:24 pm
Bueno, yo de nuevo por aqui...
Me gustaria saber como hago para validar mi xHtml porque tengo los siguientes errores:

Primer Error

Element X undefined
You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:

* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
* Line 28, column 128: element "embed" undefined

…igh" wmode="transparent" menu="false"></embed>


Segundo Error

There is no attribute X

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

* Line 28, column 15: there is no attribute "src"

<embed src="slashfiles/animate1.swf" width="990" height="400" align="middle"

* Line 28, column 47: there is no attribute "width"

… src="slashfiles/animate1.swf" width="990" height="400" align="middle" qualit

* Line 28, column 60: there is no attribute "height"

…les/animate1.swf" width="990" height="400" align="middle" quality="high" wmod

* Line 28, column 72: there is no attribute "align"

….swf" width="990" height="400" align="middle" quality="high" wmode="transpare

* Line 28, column 89: there is no attribute "quality"

… height="400" align="middle" quality="high" wmode="transparent" menu="false">

* Line 28, column 102: there is no attribute "wmode"

… align="middle" quality="high" wmode="transparent" menu="false"></embed>

* Line 28, column 121: there is no attribute "menu"

…lity="high" wmode="transparent" menu="false"></embed>


Saludos

Por XArcanHellX

Claber

213 de clabLevel



 

Venezuela

firefox
Citar            
MensajeEscrito el 05 Ago 2008 08:38 pm
Pues eso... que en "strict", no hay la etiqueta <embed>.
(la descripción del error, es muy clara... ¿no?)

El validador de xHTML, escribió:

Element X undefined


¿Cómo arreglarlo?
  1. O usas uno de esos "swfObject"
  2. O te construyes tu propia DTD, modificación de la que quieres "validar", para que soporte <embed> (es lo que yo hice para los <iframe>s, y la etiqueta <base>, y con muy buenos resultados)

Por El Oso Amoroso

Claber

1780 de clabLevel

6 tutoriales

 

Madrid, España, Europa, Eurasia, La Tierra, Sist.Solar, Vía Láctea, UNIVERSO

firefox
Citar            
MensajeEscrito el 05 Ago 2008 09:26 pm
Resolvi de la siguiente manera (solucion encontrada dentro de la misma pagina de la W3C):

Elimine los atributos "classid" y "codebase" de la etiqueta "object"
Coloque el atributo "type" con el valor "application/x-shockwave-flash"
Elimine tambien la etiquete Embed
El codigo del SWF me quedo asi:

Código :

<object type="application/x-shockwave-flash" width="990" height="400" align="middle">
    <param name="movie" value="slashfiles/animate1.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="menu" value="false" />
  </object>


Este codigo funciona para los siguientes navegadores:
1. IE -todos-
2. FF -todos-
3. NS -todos-
4. OP -todos-
5. SF -solo probe con la 3.1.2-

De esta manera la W3C acepta los SWF tranquilamente ;) gracias

Por XArcanHellX

Claber

213 de clabLevel



 

Venezuela

firefox
Citar            
MensajeEscrito el 05 Ago 2008 09:34 pm
Recuerdo, que el "<embed>" se ponía con algún motivo... pero no recuerdo cuál...
¿Alguien podría precisarlo?

Por El Oso Amoroso

Claber

1780 de clabLevel

6 tutoriales

 

Madrid, España, Europa, Eurasia, La Tierra, Sist.Solar, Vía Láctea, UNIVERSO

firefox
Citar            
MensajeEscrito el 05 Ago 2008 09:59 pm
El embed fue creado por NetScape para objetos media, sin embargo el object da mejores resultados y es aceptado por todos los navegadores. Esto lo lei en el FAQ de validacion de flash de la W3C, fue la solucion que me planteo el validador ;)

Por XArcanHellX

Claber

213 de clabLevel



 

Venezuela

firefox
Citar            
MensajeEscrito el 06 Ago 2008 12:38 am
No... si eso... ya lo sabía...
Pero la duda me surge, en... ¿porqué se sigue usando? ¿porqué el swfObject nuevo, también lo añade? ¿sólo por compatibilidad con el antiquíiiiiisimo y obsoletíiiisimo Netscape? ¿no se requerirá en otros navegadores?

Por El Oso Amoroso

Claber

1780 de clabLevel

6 tutoriales

 

Madrid, España, Europa, Eurasia, La Tierra, Sist.Solar, Vía Láctea, UNIVERSO

firefox
Citar            
MensajeEscrito el 28 Ago 2008 02:22 pm
Hola !

Estoy con el mismo tema

Probe hacer estos cambios, coincido en que por algo esta alli el bendito embed, este codigo a mi no me funciona en FireFox, :( solo lo veo en IE.


SI saben de alguna otra solucion agradecere respuesta ! :)

Por Alesan

0 de clabLevel



 

msie
Citar            
MensajeEscrito el 28 Ago 2008 04:07 pm
Tienes tres opciones:
  1. No validar, o conformarte sólo con el error del <embed />
  2. Usar swfObject para poner tus flash. (validación correcta)
  3. Crearte tu propia DTD, que defina el <embed /> y sus parámetros. (validación correcta)

Por El Oso Amoroso

Claber

1780 de clabLevel

6 tutoriales

 

Madrid, España, Europa, Eurasia, La Tierra, Sist.Solar, Vía Láctea, UNIVERSO

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.