All HTML tags should be printed in templates as tags, not as variables. Below are a few templates that are guilty of the variable approach and need to be revisited:

For example:

  <{{ heading.level }} class="{{ heading.attributes.class }}"{{ heading.attributes }}>
    {{ heading.text }}
  </{{ heading.level }}>

needs to be replaced with

  <h3 class="{{ heading.attributes.class }}"{{ heading.attributes }}>
    {{ heading.text }}
  </h3>

Comments

jenlampton’s picture

Project: » Drupal core
Issue summary: View changes

s

jenlampton’s picture

Issue summary: View changes

code samples

jenlampton’s picture

Issue summary: View changes

code tags

jenlampton’s picture

Version: » 8.x-dev
Component: Markup or variable cleanup (front-end branch) » theme system
Issue tags: +markup, +theme system cleanup

Moving this issue to the core queue.

jenlampton’s picture

Issue summary: View changes

add item-list

jenlampton’s picture

Issue summary: View changes

views-view-list

thedavidmeister’s picture

thedavidmeister’s picture

Issue tags: +Twig

tagging

thedavidmeister’s picture

Issue summary: View changes

link

joelpittet’s picture

Version: 8.0.x-dev » 8.1.x-dev
Issue summary: View changes

I agree with this to some extent but I think it won't make the cut, maybe 8.1.x?

I do recall panels recently going the other direction on this, with a dropdown for the title tag in D7.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.