bool matchesSelector(String selector) => (_node != null && matches(_node!, selector)) || name == selector;