Fix incorrect handling of invalid syntaxes.
Ignore invalid selectors.
Switch to new namespace for consistency with other modules like css-syntax.
Draft alternate API.