dom/attribute: cleanup code