Plugin breaking HTML output, javascript code placed before doctype!!!
-
Plugin Version Version 2.74
This pluign in injecting the javascript before the doctype, which forces the browsers into a different rendering mode and is improper html. Even though the line of javascript:
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
tries to move itself, it still breaks the page, see wc3 validator, or view source on any browser.If I strip that part from disqus.php and add it to the site footer manuall, voila, the page is now valid and the plugin no longer breaks the html doctype.
- The topic ‘Plugin breaking HTML output, javascript code placed before doctype!!!’ is closed to new replies.