For example the title field has the following twig structure:
<span{{ attributes }}>
{%- for item in items -%}
{{ item.content }}
{%- endfor -%}
</span>
For an anonymous user this is printed:
<h2 class="title">
<span data-quickedit-field-id="node/159/title/en/teaser">Diverse. Collaborative. Transformative.</span>
</h2>
I would recommend: Print this only for users with the quickedit permission.
It's a minor thing, but maybe interesting for users, that want to hide surrounding span holder markup, if the attributes are empty ...
Or is there a reason i'm not aware of?
Comments
Comment #2
wim leersThis is intentional, to improve cacheability. This means it can be cached across all users, anon or auth, and regardless of roles even.