• WordPress version: 3.5
    WordPress SEO version: 1.3.3

    Hi Joost,

    Validating a front end page with the admin menu bar active w3.org for HTML5, came up with the error
    Attribute alt not allowed on element div at this point.

    Searching the code I found:
    In class-metabox.php on line 861 there’s the code

    echo '<div title="' . $title . '" alt="' . $title . '" class="wpseo_score_img ' . $score . '"></div>';

    And in wpseo-non-ajax-functions.php on line 220
    $score = '<div alt="' . ucfirst( $txtscore ) . '" title="' . ucfirst( $txtscore ) . '" class="wpseo_score_img ' . $txtscore . ' ' . $perc_score . '"></div>';

    Maybe the alt text is to much?

    Met vriendelijke groet,
    Rian

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML 5 validation error in the admin bar’ is closed to new replies.