The stable version of field_group module outputs invalid markup on the "div" formatter. The issue is fixed in field_group dev module.

the wrong markup shows up like this:

<div id="user_user_form_group_subscriptions"class = "required-fields">

where id and class attributes touch each other and class has spaces before and after the = sign

in function: field_group_pre_render_div

in stable version, line 743 to 746

    $class_attribute = '';
    if (!empty($group->classes)) {
      $class_attribute = 'class = "' . $group->classes . '"';
    }

in dev version, line 764:

    $class_attribute = !empty($group->classes) ? ' class="' . $group->classes . '"' : '';

we need to patch our version of the stable field_group so that it can pass CSE validator

Comments

sylus’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.