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