dom/element: fix specialization creation