Title: JavaSscript Error DOMException insertAdjacentHTML
Last modified: June 13, 2021

---

# JavaSscript Error DOMException insertAdjacentHTML

 *  Resolved [Carsten Meiselbach](https://wordpress.org/support/users/carstenmeiselbach/)
 * (@carstenmeiselbach)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/javasscript-error-domexception-insertadjacenthtml/)
 * Hello Héctor,
 * given WPP Version 5.3.3 throws the following JavaScript Error. Tested with Chrome
   and FF newest.
 * Uncaught DOMException: Failed to execute ‘insertAdjacentHTML’ on ‘Element’: The
   element has no parent.
    at [https://happycarb.de/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js?ver=5.3.3:1:2017](https://happycarb.de/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js?ver=5.3.3:1:2017)
   at XMLHttpRequest.e.onreadystatechange ([https://happycarb.de/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js?ver=5.3.3:1:490](https://happycarb.de/wp-content/plugins/wordpress-popular-posts/assets/js/wpp.min.js?ver=5.3.3:1:490))
 * Overall, Widget is showing entries, but this error should be avoided.
    Seems 
   to be an Markup issue?
 * Best regards,
 * Carsten
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavasscript-error-domexception-insertadjacenthtml%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Carsten Meiselbach](https://wordpress.org/support/users/carstenmeiselbach/)
 * (@carstenmeiselbach)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/javasscript-error-domexception-insertadjacenthtml/#post-14550508)
 * …and not to forget:
    [https://happycarb.de/wp-json/wordpress-popular-posts/v1/popular-posts/widget/2?is_single=0](https://happycarb.de/wp-json/wordpress-popular-posts/v1/popular-posts/widget/2?is_single=0)
   is requested twice with same results, even the placeholder “wpp-widget-placeholder”
   is available once within the Markup.
 * Best regards.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/javasscript-error-domexception-insertadjacenthtml/#post-14550907)
 * Hi [@carstenmeiselbach](https://wordpress.org/support/users/carstenmeiselbach/),
   it’s been a while!
 * I just tested 5.3.3 on a fresh WordPress install with only WPP enabled and was
   not able to reproduce the issue.
 * [[
 * Chances are there’s a conflict with a third-party script / plugin. Please follow
   these troubleshooting instructions and report back your results: [I need help with your plugin! What should I do?](https://github.com/cabrerahector/wordpress-popular-posts/wiki/5.-FAQ#i-need-help-with-your-plugin-what-should-i-do)
 *  Thread Starter [Carsten Meiselbach](https://wordpress.org/support/users/carstenmeiselbach/)
 * (@carstenmeiselbach)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/javasscript-error-domexception-insertadjacenthtml/#post-14571298)
 * Hello & thanks for your feedback.
 * Yep, seems to be an issue with page code on my side. I’ve found the problem, 
   it’s now solved. So everything ok with WPP 😉
 * Best regards.

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

The topic ‘JavaSscript Error DOMException insertAdjacentHTML’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Carsten Meiselbach](https://wordpress.org/support/users/carstenmeiselbach/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/javasscript-error-domexception-insertadjacenthtml/#post-14571298)
 * Status: resolved