• Moderator t-p

    (@t-p)


    Hi all,

    The email button (just the email button only) of this plugin geberates ths W3C validation error:

    Bad value mailto:?subject=%22testing%22&body=Link: https://www.Example.com/blog/2010/04/22/testing/ (sent via shareaholic)%0D%0A%0D%0A—-%0D%0A for attribute href on element a: WHITESPACE in QUERY.
    …0A ” rel=”nofollow” class=”external” title=”Email this to a friend?”> Syntax of IRI reference:
    Any URL. For example: /hello, #canvas, or https://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.

    Please guide how to resole this issue. Or is it unresolvable?

    Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Wow, that’s a new one… WHITESPACE in QUERY is one I’ve never seen before and I’ve validated many a page with SexyBookmarks on it.

    I’ll look into it.

    Huh. 5 months, and the error still exists. However, it’s easy to fix. In includes/html-helpers.php, change this line

    $url=str_replace(strtoupper($key), $value, $url);

    to

    $url=str_replace(strtoupper($key), $value, preg_replace('/\s+/','',$url));

    Ginchen, apologies – this fell through our radar.

    Thank you for pointing out the fix! It will be included in our next release.

    This is now live in v3.2.9 (just released). Thanks again!

    Cool. =) I’m not totally sure, but it may be that this validation error only happens with HTML5. So that may be the reason why it wasn’t being noticed by many and thus “fell through the radar”. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Sexybookmarks] W3C validation error’ is closed to new replies.