Cómo validar un script de Pin It de Pinterest para W3C

  • Autor Autor Chuiso
  • Fecha de inicio Fecha de inicio
Chuiso

Chuiso

Delta
Verificación en dos pasos activada
El script es para que hagan pin en pinterest, precisamente lo saqué de un forobetano que lo dejó por el foro, pero al validar en W3C me da muchos fallos. Sé que no se va a caer el mundo por los fallos en W3C pero me gusta que el código quede medianamente limpio y me arroja varios errores y 6 warnings 😕

El script es:
Insertar CODE, HTML o PHP:
<a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if(function_exists('the_post_thumbnail')) echo wp_get_attachment_url(get_post_thumbnail_id()); ?>&description=<?php echo get_the_title(); ?>" class="pin-it-button" count-layout="vertical">Pin It</a>
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

Y los errores son:

Insertar CODE, HTML o PHP:
Line 279, Column 130: cannot generate system identifier for general entity "media"
…-trabajo-requisito-y-calidad-de-vida/&media=&description=Vivir en Cuba – Traba…


Line 279, Column 130: general entity "media" not defined and no default entity
…-trabajo-requisito-y-calidad-de-vida/&media=&description=Vivir en Cuba – Traba…
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


Line 279, Column 135: reference not terminated by REFC delimiter
…ajo-requisito-y-calidad-de-vida/&media=&description=Vivir en Cuba – Trabajo, p…
If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.


Line 279, Column 135: reference to external entity in attribute value
…ajo-requisito-y-calidad-de-vida/&media=&description=Vivir en Cuba – Trabajo, p…
This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&amp;'.


Line 279, Column 135: reference to entity "media" for which no system identifier could be generated
…ajo-requisito-y-calidad-de-vida/&media=&description=Vivir en Cuba – Trabajo, p…
This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.


Line 279, Column 137: cannot generate system identifier for general entity "description"
…o-requisito-y-calidad-de-vida/&media=&description=Vivir en Cuba – Trabajo, per…

Y hay más, pero yo creo que ya son redundancia. ¿Es posible que el código tenga errores o simplemente si lo quiero usar voy a tener que usarlo así con fallos de validación en W3C?

La web es: Enlace eliminado
Y el pinterest está debajo del cuadro de facebook, a la izquierda, en la sidebar

Saludos!
 
Atrás
Arriba