WordPress.org

Support

Support » Plugins and Hacks » Validation errors caused by dsq-postid comments rel

Validation errors caused by dsq-postid comments rel

  • <span class="dsq-postid" rel="1249 http://site.com/?p=1249">7</span>

    It appears that Disqus adds this code to the comment counts aka anything produced by <?php comments_number('0', '1', '%'); ?>

    The errors are:

    Attribute rel not allowed on element span at this point.

    and

    RDFa Core attribute rel is not allowed on the span element in HTML5 + RDFa 1.1 Lite documents. Consider checking against the HTML5 + RDFa 1.1 schema instead.

    What’s up with that?

    http://wordpress.org/extend/plugins/disqus-comment-system/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    HTML5 is not accepting “rel” in span.
    You have to edit the disqus.php file from /wp-content/plugins/disqus-comment-system.
    Search for “span class=”dsq-postid” and replace the “rel” attribute with data-comm (you can name it how you want: data-xxxxxxx).
    Also, where you see “rel” in javascript, replace it with data-comm. Don’t replace the rel in “link rel=’stylesheet'” 🙂

    That doesn’t work. 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Validation errors caused by dsq-postid comments rel’ is closed to new replies.