Compatibilizar código flash de dreamweaver con los estandares W3C

10/10/2004 - 06:24 por Scour | Informe spam
Muy buenas, estoy intentando hacer que mis páginas cumplan los estandares de
la W3C, y ya he conseguido quitar todos los errores salvo 6. Concretamente
esos 6 errores son referentes al código que pone dreamweaver al meter un
archivo flash en una web. Incluso he usado el programa tidy que te limpia el
código automáticamente y no me ha modificado este código, pero el validator
de la W3C me sigue arrojando estos 6 errores.

El código que mete dreamweaver para insertar flash es este:

-
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/...swflash.ca
b#version=6,0,29,0" width="120" height="120">
<param name="movie" value="images2/Clocks12.swf">
<param name="quality" value="high">
<embed src="images2/Clocks12.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="120"
height="120"></embed></object>
-

Y los errores que me da el validator de la W3C son estos:

-
1.. Line 73, column 56: there is no attribute "QUALITY"

...d src="images2/Clocks12.swf" quality="high"
pluginspage="http://www.macromedi

?

2.. Line 73, column 75: there is no attribute "PLUGINSPAGE"

...ks12.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashpl

?

3.. Line 73, column 126: there is no attribute "TYPE"

...cromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
width="1

?

4.. Line 73, column 164: there is no attribute "WIDTH"

...application/x-shockwave-flash" width="120"
height="120"></embed></object>

?

5.. Line 73, column 177: there is no attribute "HEIGHT"

...-shockwave-flash" width="120" height="120"></embed></object>

?

6.. Line 73, column 182: element "EMBED" undefined

...kwave-flash" width="120" height="120"></embed></object>

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), or by using vendor proprietary extensions such as
"<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).


-

¿Cómo puedo solucionarlo?

Un saludo y Gracias.

Preguntas similare

Leer las respuestas

#1 Scour
10/10/2004 - 06:30 | Informe spam
Se me olvidaba otro error más, así que son 7 errores los que me da, y este
es el error que más me desconcierta...

-
Line 73, column 25: there is no attribute "SRC"

<embed src="images2/Clocks12.swf" quality="high" pluginspage="http

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.

-

Gracias nuevamente.
Respuesta Responder a este mensaje
#2 Miguel Gonzalez
11/10/2004 - 19:07 | Informe spam
Hola Scour.

Los errores que señalas tienen todos que ver con el uso del "tag" "<embed>", deprecado por la W3C,
al ser validado mediante una DTD "estricta". Si utilizas la DTD "strict" de XHTML, recuerda que sólo
admite los tags HTML válidos en la especificación HTML 4.01.

A mi modo de ver tienes dos opciones:

a) cambiar la DTD estricta por la "transitional", que admite el uso de elementos deprecados (tanto
si utilizas HTML como XHTML):

http://www.w3.org/TR/html4/struct/g...html#h-7.2
http://www.w3.org/TR/xhtml1/#dtds

b) Lo más recomendable: eliminar el tag "<embed>" y usar exclusivamente "<object>". Por ejemplo:

<object type="application/x-shockwave-flash"
codebase="http://download.macromedia.com/pub/...29,0"
width="120" height="120" data="http://TU_SERVIDOR.com/images2/Cloc...">
<param name="movie" value="images2/Clocks12.swf">
<param name="quality" value="high">
<p><a href="http://TU_SERVIDOR.com/alternativa.html" title="Texto informativo">Enlace alternativo a
la falta del pluguin de Macromedia</a></p>
</object>


Nota: Algunos navegadores requieren que el valor del atritubo "data" incluido el "<object>" sea una
ruta absoluta.

Saludos!
Miguel


Scour wrote:
Se me olvidaba otro error más, así que son 7 errores los que me da, y este
es el error que más me desconcierta...

-
Line 73, column 25: there is no attribute "SRC"

<embed src="images2/Clocks12.swf" quality="high" pluginspage="http

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.

-

Gracias nuevamente.


Respuesta Responder a este mensaje
#3 Scour
11/10/2004 - 21:27 | Informe spam
Muchas gracias Miguel, me pongo a ello... ;)

Saludos.


"Miguel Gonzalez" escribió en el mensaje
news:e$
Hola Scour.

Los errores que señalas tienen todos que ver con el uso del "tag" "<embed>",
deprecado por la W3C,
al ser validado mediante una DTD "estricta". Si utilizas la DTD "strict" de
XHTML, recuerda que sólo
admite los tags HTML válidos en la especificación HTML 4.01.

A mi modo de ver tienes dos opciones:

a) cambiar la DTD estricta por la "transitional", que admite el uso de
elementos deprecados (tanto
si utilizas HTML como XHTML):

http://www.w3.org/TR/html4/struct/g...html#h-7.2
http://www.w3.org/TR/xhtml1/#dtds

b) Lo más recomendable: eliminar el tag "<embed>" y usar exclusivamente
"<object>". Por ejemplo:

<object type="application/x-shockwave-flash"
codebase="http://download.macromedia.com/pub/...swflash.ca
b#version=6,0,29,0"
width="120" height="120" data="http://TU_SERVIDOR.com/images2/Cloc...">
<param name="movie" value="images2/Clocks12.swf">
<param name="quality" value="high">
<p><a href="http://TU_SERVIDOR.com/alternativa.html" title="Texto
informativo">Enlace alternativo a
la falta del pluguin de Macromedia</a></p>
</object>


Nota: Algunos navegadores requieren que el valor del atritubo "data"
incluido el "<object>" sea una
ruta absoluta.

Saludos!
Miguel


Scour wrote:
Se me olvidaba otro error más, así que son 7 errores los que me da, y este
es el error que más me desconcierta...

-
Line 73, column 25: there is no attribute "SRC"

<embed src="images2/Clocks12.swf" quality="high" pluginspage="http

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.

-

Gracias nuevamente.


email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida