I want to check if parents child is the last:
(so in my case, i want to select the .icon if it is the very last element/node in it's parent .button)
<a href="" class="button">
    <i class="icon"></i>
    Button
</a>
<a href="" class="button">
    Button
    <i class="icon"></i>
</a>
I tried like this: .button .icon:last-child also :last-of-type
But the selector ignores text nodes - is there a way how could i detect if the .icon is before / behind the text?