WordPress.org

Forums

Yoast SEO
HTML 5 validation error in the admin bar (3 posts)

  1. Rian Rietveld
    Moderator
    Posted 2 years ago #

    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/

  2. Ryan Burnette
    Member
    Posted 2 years ago #

    Why does it matter if the admin bar is w3 validated?

  3. Rian Rietveld
    Moderator
    Posted 2 years ago #

    Because i'm building a website that needs to be WCAG 2.0 valid.
    And besides that, it's good practice?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags