• Resolved Oliver

    (@oliverraduner)


    The generated meta-Tags from the OG Plugin contain an unnecessary trailing slash /, as discovered by the W3Validator for my rendered Site:

    Info: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values.

    <meta property="og:image" … />

    https://validator.w3.org

    The causing lines of code within the OG Plugin can be found here:

    og/includes/iworks/class-iworks-opengraph.php

    924: printf(
    925: '<link rel="image_src" href="%s" />%s',
    938: printf(
    939: '<meta name="msapplication-TileImage" content="%s" />%s',
    1087: sprintf(
    1088: '<meta property="%s" %s />%s',
    1136: sprintf(
    1137: '<meta %s="%s" content="%s" />%s',
    • This topic was modified 1 year, 10 months ago by Oliver.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘W3Validator notices about unnecessary trailing slashes’ is closed to new replies.