Are you saying your WAF did not like what it wiffed?
Fortunately, there is another option so here it goes.
In a nav menu
home
articles
_article 1
_article 2
_article 3
contact
I needed to identify nav links that are not dropdowns (home, contact), the top of a dropdown (articles), the first and last dropdown items (article 1 and article 3).
I used this.items.length and this.level for much of it, but I needed to remember this.items.length using a parameter before processing dropdown items.
I wrote a helper and then modified the menu.hbs.
Here is the code. (ugly of course)
https://codepen.io/codepen-slpa/pen/VwPMZKV
It all works now!
I am hoping my code helps inspire others.
Cheers!!