dom/element: fix specialization lookup