dom/element: more attributes improvements