HTML5 Validation invalid: longdesc attribute on img element
-
The plugin is great, but its generating the wrong html/html5 for the imageflow. I am using html5 site with wp 3.5 and wp-imageflow2 plus 1.7.2.
The w3c validator giving following error:“The longdesc attribute on the img element is obsolete. Use a regular a element to link to the description.”
The current generated wrong html is:
<img src=”https://www.mysite.com/wp-content/plugins/wp-imageflow2/php/reflect2.php?img=http%3A%2F%2Fwww.mysite.com%2Fwp-content%2Fuploads%2F2012%2F01%2Fimage.png&bgc=%234E5162″ longdesc=”https://www.site1.com” alt=”altvalue” />The valid html can be like:
<img src=”https://www.mysite.com/wp-content/plugins/wp-imageflow2/php/reflect2.php?img=http%3A%2F%2Fwww.mysite.com%2Fwp-content%2Fuploads%2F2012%2F01%2Fimage.png&bgc=%234E5162″ title=”https://www.site1.com” alt=”altvalue” />Means we can use title in place of longdesc to make it valid html.
Please fix it inside the plugin.
- The topic ‘HTML5 Validation invalid: longdesc attribute on img element’ is closed to new replies.