style: code cleanup
perf(_ElementSelector): Remove recursion in addDirective