attempt to ignore invalid / unsupported pseudo-classes properly
see issue #382