bool CSSSelector::matches(const ustring & name) const { string key = name.collate_key(); return selector_keys.count(key) > 0; }