Problem

Fields without a value get rendered in D8 head (as of 26.4.2015). The field label for the empty field get rendered to.

Expected Behavior

Empty fields dont get rendered, especially not their labels. Thats the way it used to be in D7. And as I remember in early betas of D8.

Steps to reproduce

  1. Create a new content type.
  2. Add a textfield with a label.
  3. Add a new node of the new content type.
  4. Just give it a title, leave everything else empty.
  5. View the node, look at the html.

Strange enough: the body field gets treated different.

Node content:

Node display:

Node markup:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

derheap’s picture

Issue summary: View changes
derheap’s picture

yched’s picture