matchesSeletor implementation according dom2 standard