Tag nesting in Form_builder

edited June 2015 in Bug Reports
With a field type of "section" it's possible to use block tags (eg h3) but the form builder wraps these in span tags, making it invalid according to the W3C validator. I suppose these should be not wrapped, or wrapped with divs?

Comments

  • edited 3:12AM
    That makes sense. I'll look into updating that. There is also the ability to make sections by adding a "section" parameter and specifying the section_tag property on the form_builder instance which won't wrap it in the span. This would insert the section right above the field:
    $fields['my_field'] = array('section' => 'MY SECTION'); $this->form_builder->section_tag = 'h4'; $this->form_builder->set_fields($fields);
  • edited 3:12AM
    Interesting! Noted.
Sign In or Register to comment.