Title: [Plugin: Sociable] fails XHTML validation
Last modified: August 19, 2016

---

# [Plugin: Sociable] fails XHTML validation

 *  Resolved [ddeconin](https://wordpress.org/support/users/ddeconin/)
 * (@ddeconin)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/plugin-sociable-fails-xhtml-validation/)
 * when i XHTML validate my blog I get an error on the codepiece that calls the 
   sociable plugin.
 * The code is
    ‘<?php if (function_exists(‘sociable_html’)) { echo sociable_html();}?
   >’ and the error is
 * ‘Line 135, Column 21: document type does not allow element “div” here; missing
   one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag.
   
   <div class=”sociable”>✉ ‘
 * Anybody who knows how I can fix this ?

Viewing 1 replies (of 1 total)

 *  [JeanPaulH](https://wordpress.org/support/users/djr/)
 * (@djr)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-sociable-fails-xhtml-validation/#post-1017156)
 * This is not the plugin’s fault. Sociable outputs a <div> element, and you probably
   have the Sociable code inside a span, p or any other elements where a <div> is
   not allowed ( I know the W3C Validator error is vague, but this is what it means).
   Could you try move it outside the <span> or <p> and see if the error disappears?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Sociable] fails XHTML validation’ is closed to new replies.

## Tags

 * [xhtml](https://wordpress.org/support/topic-tag/xhtml/)

 * 1 reply
 * 2 participants
 * Last reply from: [JeanPaulH](https://wordpress.org/support/users/djr/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-sociable-fails-xhtml-validation/#post-1017156)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
