invalid html markup
-
When testing my site for errors I found out that CJT wraps its shortcode content in a span for identification.
I don’t know if/why it’s needed in the final output, but when that content contains html such as a div, this creates invalid html markup, as div’s should not be inside spans.
https://www.w3.org/TR/html-markup/span.html#span-context
While browsers seem to handle it just fine, it can have a negative impact on SEO, which is undesirable for me. If not needed I hope for an option to turn it off, or otherwise a better approach can be found. Eg. immediately close the span, then open & close at the end of the code block. Or use div’s, or html comments, or …
This is a fantastic plugin. I hope it will be updated and patched, and I’ll consider donating or buying the dev version.
https://www.ads-software.com/plugins/css-javascript-toolbox/
- The topic ‘invalid html markup’ is closed to new replies.