WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Sexybookmarks] W3C validation error (6 posts)

  1. Tara
    Member
    Posted 4 years ago #

    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: http://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 http://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.

  2. Josh Jones
    Member
    Posted 4 years ago #

    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.

  3. Ginchen
    Member
    Posted 3 years ago #

    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));

  4. Shareaholic
    Member
    Posted 3 years ago #

    Ginchen, apologies - this fell through our radar.

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

  5. Shareaholic
    Member
    Posted 3 years ago #

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

  6. Ginchen
    Member
    Posted 3 years ago #

    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". ;)

Topic Closed

This topic has been closed to new replies.

About this Topic