Manipulation: current.attributes.class = 'active' seems not to work

Hi guys,

I’ve tried to manipulate the attribute class of a menu element for several days now (Neos 2.2.5):

current.attributes.class = 'active'

####This is my .ts2:
mainmenu = Menu {
templatePath = 'resource://VENDOR.Site/Private/Templates/TypoScriptObjects/Mainmenu.html’
entryLevel = 1
maximumLevels = 2
current.attributes.class = ‘active’

This feature was implemented in Neos 1.0.0 according to:

####It should change <li class="current"> to <li class="active"> but it doesn’t work for me. Can someone confirm this? Am I missing something?
This is the current state:

<ul class="nav navbar-nav">
    <li class="normal"><a href="/en/company.html">Company</a></li>
    <li class="active dropdown">
        <a role="button" aria-expanded="true" data-toggle="dropdown" class="dropdown-toggle">Service</a>
        <ul class="dropdown-menu" role="menu">
            <li class="normal"><a href="/en/service/one.html">One</a></li>
            <li class="current"><a href="/en/service/two.html">Two</a></li>
            <li class="normal"><a href="/en/service/three.html">Three</a></li>

Kind regards


This are two examples how others implemented this:

The first:

The second:

It doesn’t work for me either on Neos 3.3.

Even in the demo at the state is used directly.