• Resolved Lou Friedman

    (@lou-friedman)


    This plugin throws validation errors on the images.

    For example, validator.w3c.org returns a message:
    Error: Bad value 100% for attribute width on element img: Expected a digit but saw % instead.

    Using code like this:
    <img height="auto" width="100%" style="max-width:360px;" src="/mysource.jpg">

    Should be converted to something like this:

    <img style="height:auto; width:100%; max-width:360px;" src="/mysource.jpg">

    https://www.ads-software.com/plugins/crafty-social-buttons/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sarah

    (@shen045)

    Can you give me a URL to a site where this is happening?

    This doesn’t look at all like the code generated by this plugin. Width and height are set explicitly in pixels on every image, and there are certainly none of the sharing buttons that ever have a width of 100%, so I suspect there must be something else going on.

    Cheers,
    sarah

    Thread Starter Lou Friedman

    (@lou-friedman)

    Hi Sarah,

    I ran the validation again on https://lowcountrydrycleaners.com/

    This time I did not get any errors on the plugin code. And the width and height are set explicitly as you described.

    I suspect I copied the wrong code or the validation service I used had a bug. Sorry for the bother!

    Great plugin!

    Thread Starter Lou Friedman

    (@lou-friedman)

    Forgot to close issue. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘w3C validation on img’ is closed to new replies.