For example the title field has the following twig structure:

<span{{ attributes }}>
    {%- for item in items -%}
        {{ item.content }}
    {%- endfor -%}

For an anonymous user this is printed:

<h2 class="title">
    <span data-quickedit-field-id="node/159/title/en/teaser">Diverse. Collaborative. Transformative.</span>

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?


sachbearbeiter created an issue. See original summary.

Wim Leers’s picture

Status: Active » Fixed

This is intentional, to improve cacheability. This means it can be cached across all users, anon or auth, and regardless of roles even.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.