Invalid HTML generated by plugin?
-
Hey,
first, great plugin, thanks for building and maintaing it!I just have a small problem with the HTML the plugin produces. If I check my website at the W3 HTML Validator (https://validator.w3.org) I get an error message:
“Error: Element div not allowed as child of element span in this context.”If I look at the source code the problem seems to be that the div
<div style="display: none;" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">is placed in the span element
<span id="post-ratings-8" class="post-ratings" itemscope itemtype="http://schema.org/Article" data-nonce="b343faef26">The Validator locates the error in the code that is generated by the plugin and on sites where I haven’t included the ratings I get no such error. So I am pretty sure the flawed HTML is generated by the plugin.
Anyone else experiencing this problem?
The topic ‘Invalid HTML generated by plugin?’ is closed to new replies.