id attribute block.html.twig and node.html.twig

Created on 16 November 2012, about 12 years ago
Updated 8 July 2023, over 1 year ago

There's a todo in block.html.twig to the effect that we should remove the block ID attribute since more than one block can appear on a page. However, it's still useful to be able to target blocks independently. I propose using the attributes.id concatenated with the block_id variable (since it's a counter).

Although the docs do say attribute.id is guaranteed unique. So not sure there.

📌 Task
Status

Fixed

Version

8.0 ⚰️

Component
Theme 

Last updated 26 minutes ago

Created by

🇨🇦Canada Renee S

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024