Title: [Plugin: AddToAny: Subscribe Button] Does not validate.
Last modified: August 19, 2016

---

# [Plugin: AddToAny: Subscribe Button] Does not validate.

 *  ResolvedModerator [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * (@desrosj)
 * Principal Software Engineer & WordPress Core Committer
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-addtoany-subscribe-button-does-not-validate/)
 * The current version (.9.9.6.4) does not validate. The Javascript added is added
   within the UL, but not in an LI, thus breaking validation attempts.
 * [http://wordpress.org/extend/plugins/add-to-any-subscribe/](http://wordpress.org/extend/plugins/add-to-any-subscribe/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-addtoany-subscribe-button-does-not-validate/#post-1694103)
 * Both plugins output semantic code and should validate perfectly, but which plugin
   are you referring to? You say version .9.9.6.4 but that’s the AddToAny Sharing
   plugin, not the AddToAny Subscribe plugin.
 *  Moderator [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * (@desrosj)
 * Principal Software Engineer & WordPress Core Committer
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-addtoany-subscribe-button-does-not-validate/#post-1694111)
 * My mistake Micropat, I meant AddToAny: Share/Bookmark/Email Button. But it appears
   you created both?
 * The error I receive is:
 * > document type does not allow element “script” here; assuming missing “li” start-
   > tag
 * It comes from the javascripts that are output around 251-263 in add-to-any.php.
   As I said, the scripts are output within the UL but not in an LI. To fix this
   I enclosed it in an LI and gave it a display:none as I could not print it outside
   of the UL.
 * I tried just moving the closing UL before the script is output, however I can’t
   find the location that the original one is output.
 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-addtoany-subscribe-button-does-not-validate/#post-1694114)
 * Hmm… the non-semantic code doesn’t seem like it’s coming from the plugin, and
   after taking a took at the source of [your site](http://www.slocumstudio.com/)(
   I’m guessing) I see you’ve done a bit of customization for AddToAny (the icons
   look great!).
 * Unfortunately it’s difficult to tell which code might be yours and which code
   is generated from the plugin. Can you give some insight into how you have AddToAny
   setup on your site?
 * Also, some quick feedback: “Email” is now offered as a standalone service in 
   the plugin. 🙂
 *  Moderator [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * (@desrosj)
 * Principal Software Engineer & WordPress Core Committer
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-addtoany-subscribe-button-does-not-validate/#post-1694155)
 * We do use it on that site, however that is at version .9.9.5.7. Your comment 
   sparked a eureka moment for me though and I found the issue! I failed to define
   a html_container_open and html_container_close parameter.
 * The site I am currently using the latest version on is [here](http://new.slocum.tv/2010/05/partridge-snow-hahn/).
 * Thanks for the compliment on the customization, I will pass that to our designer
   🙂
 * We would gladly give you an updated set of icons for the plugin in exchange to
   being listed as a contributor or something. Let me know if that is something 
   you would want to arrange.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: AddToAny: Subscribe Button] Does not validate.’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-to-any-subscribe.svg)
 * [Subscribe Button by AddToAny](https://wordpress.org/plugins/add-to-any-subscribe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any-subscribe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any-subscribe/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any-subscribe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any-subscribe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any-subscribe/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jonathan Desrosiers](https://wordpress.org/support/users/desrosj/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-addtoany-subscribe-button-does-not-validate/#post-1694155)
 * Status: resolved