dom/element: add #matches?
compatibility: add initial compatibility layer