• Resolved Torsten Landsiedel

    (@zodiac1978)


    Hi!

    If I use your plugin I get two validation errors:

    Bad value “” for attribute “id” on element “a”: An ID must not be the empty string.

    This one is easily resolved, you just have to add an ID, but I think the attribute shouldn’t be added if it is empty to prevent this failure.

    The next one is not so easy to resolve:

    The “sizes” attribute may be specified only if the “srcset” attribute is also present.

    This seems to be a real bug, because:

    If the srcset attribute is absent, or contains no values with a width descriptor, then the sizes attribute has no effect.

    https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

    All the best,
    Torsten

Viewing 3 replies - 1 through 3 (of 3 total)
  • GeoffBel

    (@geoffbel)

    Hey @torsten,

    Thank you for bringing this to our attention.

    At this point I am not getting these validation errors on my end.
    Would you mind telling me with which theme and which version of WordPress you are using it ?

    Even better would be an example URL.

    Have a good weekend,

    Geoff B.

    Plugin Contributor Zach Tirrell

    (@zbtirrell)

    This issue is fixed in 4.4.2! Thanks for reporting it.

    Thread Starter Torsten Landsiedel

    (@zodiac1978)

    Confirmed! Thank you very much. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation errors’ is closed to new replies.