EATEASER-SB

Invalid HTML in com_content override

Summary:
The com_content override uses a <span> tag for itemprop (as did J!3.3). Because the editors insert <p> and other tags that are invalid HTML inside <span></span> some browsers fail to render content and validators output lots of errors.

The Wanderers template still uses <span></span> for itemprop tags.

Solution:
The discussion covers using <section> tags but the issue was resolved using <div> tags instead to be compatible with IE8 and other non-HTML5 browsers. I have tested this locally converting <span> to <div> on lines 196 & 198 of the file wanderers/html/com_content/article/default.php.

The related bug and issue is found here:

Bug: https://github.com/joomla/joomla-cms/pull/3511
Issue: https://issues.joomla.org/tracker/joomla-cms/3508

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Support is
Offline

It is currently a weekend from where we are at. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!

Your time
Stack Ideas time